jsonxt

Jsonxt - JSON parsers for files, strings and more
IN THIS PACKAGE
Module Jsonxt . Json . Strict
type json = [
| `Null
| `Bool of bool
| `Float of float
| `String of string
| `Assoc of (string * json) list
| `List of json list
]

The following polymorphic variants supported

  • `Null: JSON null
  • `Bool of bool: JSON boolean
  • `Float of float: JSON number. Infinity, NaN etc are not supported
  • `String of string: JSON string. Bytes in the range 128-255 are preserved when reading and writing.
  • `Assoc of (string * json) list: JSON object.
  • `List of json list: JSON array.
type t = json