json-autotype

Version 3.1.2 revision 0 uploaded by MichalGajda.

Package meta

Synopsis
Automatic type declaration for JSON input data
Description

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.'

Author
Michal J. Gajda
Bug reports
https://github.com/mgajda/json-autotype.git/issues
Category
Data, Tools
Copyright
Copyright by Migamake '2014-'2020
Homepage
https://github.com/mgajda/json-autotype.git#readme
Maintainer
simons@cryp.to, mjgajda@gmail.com
Package URL
n/a
Stability
stable

Components