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.2.tbz
sha256=9abfad8c9a79d4723ad2f6448e669c1e68dbfc87cc54a1b7c064b0c90912c595
sha512=ac52eae3ca1d3129a7885ca638e6ae5bcfc387598a82cc30d3e4988fd154f1756719c399f96e950d898c79a6dbd4ccc44b6f468bcafbd620e6945a0415b41e0c

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.