package yojson

  1. Overview
  2. Docs
On This Page
  1. Entry point
Legend:
Library
Module
Module type
Parameter
Class
Class type

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.