The latest version of json-autotype is 3.1.2-0.

json-autotype

Version 1.0.18 revision 1 uploaded by PeterSimons.

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"

One can now use multiple input files to generate better type description.

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-'2017
Homepage
https://github.com/mgajda/json-autotype
Maintainer
mjgajda@gmail.com
Package URL
n/a
Stability
stable

Components