https://github.com/coot/purescript-argonaut-aeson-generic
Argonaut codecs for aeson generic encoding
https://github.com/coot/purescript-argonaut-aeson-generic
Last synced: 5 months ago
JSON representation
Argonaut codecs for aeson generic encoding
- Host: GitHub
- URL: https://github.com/coot/purescript-argonaut-aeson-generic
- Owner: coot
- License: mpl-2.0
- Created: 2017-10-19T12:39:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-24T02:24:14.000Z (over 3 years ago)
- Last Synced: 2025-03-01T02:41:18.056Z (over 1 year ago)
- Language: PureScript
- Size: 72.3 KB
- Stars: 12
- Watchers: 3
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Argonaut Aeson Generic Json Codecs
[](http://github.com/coot)
[](http://github.com/peterbecich)
[](https://pursuit.purescript.org/packages/purescript-argonaut-aeson-generic)
[](https://github.com/coot/purescript-argonaut-aeson-generic/actions/workflows/ci.yml)
Generic codec for aeson generic encoding. The promise is to support
interoperation with [the generic encoding of Haskell's Aeson]. The default
options mirror Aeson's _(so you can use `defaultOptions` on both sides)_, and
additionally all combinations of flags `allNullaryToStringTag` and
`tagSingleConstructors` are supported.
The package provides `genericEncodeAeson` and `genericDecodeAeson` function for
data types that have a `Generic.Rep` instance.
It is updated to work with `purescript-0.15`.
[the generic encoding of Haskell's Aeson]: https://hackage.haskell.org/package/aeson-1.5.4.1/docs/Data-Aeson.html#v:genericToJSON