package yojson

  1. Overview
  2. Docs
Yojson is an optimized parsing and printing library for the JSON format

Install

Dune Dependency

Authors

Maintainers

Sources

yojson-2.2.0.tbz
sha256=bfdc33bef3141bba9a8fa66a885b54b29f6bfab450040884dd8cf7cdec784519
sha512=0854d8ab094c8f70fdb6af7f36cac621cecfcbae4592f6e079945761460625fdb7d1bff458998dc95970990daefce57b7f4f9458fd1347a393a1d76709bc9561

doc/index.html

The yojson library

The Yojson library provides runtime functions for reading and writing JSON data from OCaml. The design goals of Yojson are the following:

  • Allowing type-aware serializers/deserializers to read and write directly without going through a generic JSON tree, for efficiency purposes.
  • Distinguishing between ints and floats.
  • Providing optional extensions of the JSON syntax. These extensions include comments, arbitrary strings, optional quotes around field names, tuples and variants.

See JSON specification.

Author: Martin Jambon

Entry point

The entry point of this library is the module Yojson.

OCaml

Innovation. Community. Security.