haskell/aeson

Add saner ByteString instances

Open

#187 创建于 2014年3月5日

在 GitHub 查看
 (22 评论) (3 反应) (0 负责人)Haskell (334 fork)batch import
blocked by upstream/should be done externallyhelp wantedneeds decision

仓库指标

Star
 (1,298 star)
PR 合并指标
 (平均合并 935天 9小时) (30 天内合并 5 个 PR)

描述

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]

贡献者指南