package yojson
Yojson is an optimized parsing and printing library for the JSON format
Install
Dune Dependency
Authors
Maintainers
Sources
v1.4.0.tar.gz
sha256=7d06340b769ed6ff5b2171a0e820d1e8f4337aef3929090fc976efe845639146
md5=729b5e15b2f7c1cb7d402bc301d06d0e
doc/README.html
Yojson: JSON library for OCaml
Library documentation
Currently at https://mjambon.github.io/mjambon2016/yojson-doc/Yojson.html
The link above is for the ocamldoc-generated of some past version of yojson. Suggestions on how to keep this documentation updated automatically for each minor release are welcome.
Design goals
- reducing inter-package dependencies by the use of polymorphic variants for the JSON tree type
- allowing variants of the JSON tree type to be shipped by the library itself or to be easily created as extensions of the library
- allowing type-aware serializers/deserializers such as json-static to read and write directly without going through a JSON tree, for efficiency purposes. This requires making readers and writers of JSON atoms (int, string, etc.) to be exported and composable.
providing a few non-standard, optional extensions of JSON. These extensions will include:
- optional quotes around "simple" field/constructor names
- a syntax for tuples (at least 2 elements):
(x, y)
- a syntax for variants (0 or 1 arg only):
<Foo> <Bar:"abc">
Other choices already in json-wheel
- distinction between ints and floats (optional)
Getting rid of the UTF-X encoding constraint that prevents from exchanging binary data:
- encoding is ASCII except for the contents of string literals
- string literals may represent arbitrary sequence of bytes
\uABCD
escapes in string literals expand to UTF-8
Miscellaneous
- no dependency on ocamlnet for UTF-8
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page