@hackage json-to-type4.0.1

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-to-type binary on an input .json file. . That will generate a new Aeson-based JSON parser. . . > $ json-to-type 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 maintainer.) . . See introduction on https://github.com/jappeace/json-to-type for details.' .