json-autotype: 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.'
[Skip to Readme]
Modules
[Index] [Quick Jump]
Downloads
- json-autotype-3.0.5.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.2.0.0, 0.2.1.0, 0.2.1.1, 0.2.1.2, 0.2.1.3, 0.2.1.4, 0.2.2.0, 0.2.3.0, 0.2.4.0, 0.2.5.0, 0.2.5.1, 0.2.5.2, 0.2.5.3, 0.2.5.4, 0.2.5.6, 0.2.5.7, 0.2.5.8, 0.2.5.9, 0.2.5.10, 0.2.5.11, 0.2.5.12, 0.2.5.13, 0.3, 0.4, 0.5, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.17, 1.0.18, 1.1.0, 1.1.1, 1.1.2, 2.0.0, 3.0.0, 3.0.1, 3.0.4, 3.0.5, 3.1.0, 3.1.1, 3.1.2 (info) |
---|---|
Change log | changelog.md |
Dependencies | aeson (>=1.2.1 && <1.5), base (>=4.9 && <5), bytestring (>=0.9 && <0.11), containers (>=0.3 && <0.7), data-default (>=0.7 && <0.8), filepath (>=1.3 && <1.5), GenericPretty (>=1.2 && <1.3), hashable (>=1.2 && <1.4), json-alt, json-autotype, lens (>=4.1 && <4.20), mtl (>=2.1 && <2.3), optparse-applicative (>=0.12 && <1.0), pretty (>=1.1 && <1.3), process (>=1.1 && <1.7), QuickCheck (>=2.4 && <3.0), run-haskell-module, scientific (>=0.3 && <0.5), smallcheck (>=1.0 && <1.2), template-haskell, text (>=1.1 && <1.4), uniplate (>=1.6 && <1.7), unordered-containers (>=0.2 && <0.3), vector (>=0.9 && <0.13), yaml (>=0.8 && <0.12) [details] |
License | BSD-3-Clause |
Copyright | Copyright by Migamake '2014-'2020 |
Author | Michal J. Gajda |
Maintainer | simons@cryp.to, mjgajda@gmail.com |
Category | Data, Tools |
Home page | https://github.com/mgajda/json-autotype.git#readme |
Bug tracker | https://github.com/mgajda/json-autotype.git/issues |
Source repo | head: git clone https://github.com/mgajda/json-autotype.git |
Uploaded | by MichalGajda at 2020-03-29T18:23:22Z |
Distributions | |
Reverse Dependencies | 5 direct, 0 indirect [details] |
Executables | json-autotype |
Downloads | 34269 total (69 in the last 30 days) |
Rating | 2.5 (votes: 3) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |