The latest version of json-autotype is 3.1.2-0.
json-autotype
Version 0.2.5.13 revision 0 uploaded by MichalGajda.
Package meta
- Synopsis
- Automatic type declaration for JSON input data
- Description
Generates datatype declarations with Aeson's FromJSON instances from a set of example ".json" files.
To get started you need to install the package, and run "json-autotype" binary on an input ".json" file. That will generate a new Aeson-based JSON parser.
"$ json-autotype input.json -o JSONTypes.hs"
Feel free to tweak the by changing types of the fields - any field type that is instance of FromJSON should work.
You may immediately test the parser by calling it as a script:
"$ runghc JSONTypes.hs input.json"
See introduction on https://github.com/mgajda/json-autotype for details.
- Author
- Michal J. Gajda
- Bug reports
- https://github.com/mgajda/json-autotype/issues
- Category
- Data, Tools
- Copyright
- Copyright by Michal J. Gajda '2014-'2015
- Homepage
- https://github.com/mgajda/json-autotype
- Maintainer
- mjgajda@gmail.com
- Package URL
- n/a
- Stability
- beta