Page
Library
Module
Module type
Parameter
Class
Class type
Source
Jsont is an OCaml library for declarative JSON data manipulation. It provides:
The descriptions are independent from the codec and can be used by third-party processors or codecs.
Jsont is distributed under the ISC license. It has no dependencies. The codec is optional and depends on the bytesrw
library. The JavaScript support is optional and depends on the brr
library.
Homepage: https://erratique.ch/software/jsont/
Jsont can be installed with opam
:
opam install jsont
opam install jsont bytesrw # For the optional codec support
opam install jsont brr # For the optional JavaScript support
opam install jsont bytesrw cmdliner # For the jsont tool
The documentation can be consulted online or via odig doc jsont
.
Questions are welcome but better asked on the OCaml forum than on the issue tracker.
A few examples can be found in the documentation and in the test directory. The test/topojson.ml
and test/geojson.ml
show use of the library on concrete JSON data formats.
If you want to understand the finally tagged technique used by the library, the paper/soup.ml
source implements the abridged version of the underlying data type used in the paper.
A grant from the OCaml Software Foundation helped to bring the first public release of jsont
.