package jsonxt

  1. Overview
  2. Docs

Strict supports only types that are supported by the JSON standard. Integers are not supported

type json = [
  1. | `Null
  2. | `Bool of bool
  3. | `Float of float
  4. | `String of string
  5. | `Assoc of (string * json) list
  6. | `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
OCaml

Innovation. Community. Security.