@hackage aeson-combinators0.0.2.1

Aeson combinators for dead simple JSON decoding

Aeson Combinators

Build Status

This library defines low overhead value space Decoder on top of Aeson's Parser for combinator style decoding.

This library is compatible with GHC 7.6 and later as well as recent versions of GHCJS.

Encoding to JSON is currently not supported but might be added in the future version.

I wrote a blob post describing what this library attempts to solve.

Internals

This library introduces as low overhead over Aeson API as possible. Decoder a type is a function Value -> Parser a same as fromJSON function of FromJSON class. This means there should be near zero overhead. Aeson types and functions are reused where possible.

TODO

  • Documentation
  • Support for more GHC versions
  • Default decoders for Containers
  • Encoding API

License

(c) 2020 Marek Fajkus BSD-3-Clause