Published: 19 Mar 2019
This library is a collection of type-aware JSON utilities for OCaml.
'a encodingtype that represents the JSON encoding of OCaml values of type
'a, and a collection of combinators to build them. These encodings can be used to serialize / deserialize OCaml values to / from JSON documents. JSON schemas can also be generated automatically to produce documented, interoperable JSON formats.
Json_schemacontains an OCaml intermediate representation for the JSON schema document grammar description language, along with translators to / from the concrete JSON schema format.
Json_querycontains various utilities to manipulate, introspect and update JSON data.
Json_reprdefines an abstraction over JSON representations. This module is mainly useful when using the functorial interface of the library, or if you use several JSON libraries in your program and want to convert data from one JSON representation to another.
The type of JSON documents handled by this library is directly compatible with
ezjsonm, but converters are provided for
yojson users, and an advanced functorial interface allows you to use any JSON representation. Two other representations are also provided.
js_of_ocaml. Provided by the extra package
Json_repr_bsonis an implementation of a subset of BSON. Provided by the extra package
Thanks to polymorphic variants, this library does not depend on any JSON library, so you are free to use whichever you want for printing and parsing.
Used by (16)
>= "0.9.5" & < "1.1.0"