haskell/aeson

Add saner ByteString instances

Ouverte

#187 ouverte le 5 mars 2014

 (22 commentaires) (3 réactions) (0 personne assignée)Haskell (334 forks)batch import
blocked by upstream/should be done externallyhelp wantedneeds decision

Métriques du dépôt

Stars
 (1 298 étoiles)
Métriques de merge PR
 (Merge moyen 935j 9h) (5 PRs mergées en 30 j)

Description

ByteString instances were removed because they allowed people to try and insert arbitrary binary data that JSON can't handle.

Could we not re-add ByteString instances that leveraged something like base64 encoding (which JSON can take I believe) to work around this limitation?

<mgsloan> Fuuzetsu: Best thing to do is to avoid putting bytestrings in json,
          but when it's unavoidable:
          https://gist.github.com/mgsloan/bfe4bf2250c1d656a2b1  [05:03]

Guide contributeur