Support for serialising Haskell to and from JSON

Version on this page:0.9.3
LTS Haskell 13.22:0.9.3
Stackage Nightly 2019-05-23:0.9.3
Latest on Hackage:0.9.3

See all snapshots json appears in

BSD-3-Clause licensed by Galois Inc.
Maintained by Iavor S. Diatchki (iavor.diatchki@gmail.com)

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999.

This library provides a parser and pretty printer for converting between Haskell values and JSON.


Version 0.9.1
* Merge-in contributions from Neil Mitchell to support GHC 7.10

Version 0.9
* Merge-in contributions from Neil Mitchell to accomodate working with HEAD.

Version 0.8
* Add `Applicative` instance for `GetJSON`

Version 0.4.4: released 2009-01-17; changes from 0.4.2

* Fixes handling of unterminated strings.

Version 0.4.3: released 2009-01-17; changes from 0.4.2

* optimize some common cases..string and int literals.
Reduces parse times by > 2x on larger dict inputs containing
both kinds of lits.

Version 0.4.2: released 2009-01-17; changes from 0.4.1

* fixed Cabal build issues with various versions of 'base' and Data.Generic
* fixed whitespace-handling bug in Parsec-based frontend.

Version 0.4.1: released 2009-01-12; changes from 0.3.6

* Addition of extra JSON instances:
- IntMap, Set, Array, IntSet

* Dropped initial letter case-lowering for constructors:
- Maybe's constructors are mapped to "Nothing","Just".
- Either's constructors are mapped to "Left", "Right".

* Ordering's are represented by their constructor names (was
funky int-mapping.)

* JSON.Text.Result is now an instance of MonadError; contributed
by Andy Gimblett.

* Included Lennart Augustsson's contributed generic JSON encoder,
in Text.JSON.Generic

* Optional JSON dict-mapping for Data.Map and Data.IntMap

comments powered byDisqus