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.0.2.tbz
sha256=876bb6f38af73a84a29438a3da35e4857c60a14556a606525b148c6fdbe5461b
sha512=9e150689a814a64e53e361e336fe826df5a3e3851d1367fda4a001392175c29348de55db0b7d7ba18539dec2cf78198efcb7f41b77a9861763f5aa97c05509ad

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.