@hackage json-autotype3.0.5

Automatic type declaration for JSON input data

Generates datatype declarations with Aeson''s 'Data.Aeson.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 'Data.Aeson.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.

Now with Elm code generation support!

(If you want your favourite programming language supported too —

name your price and mail the author.)

See introduction on https://github.com/mgajda/json-autotype for details.'