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. | `As
  6. | `Ae
  7. | `Os
  8. | `Oe
  9. | `Name of string
]

The following polymorphic variants are supported

  • `Null: JSON null
  • `Bool of bool: JSON boolean
  • `Float of float: JSON number
  • `String of string: JSON string with characters in the range 128-255 preserved
  • `As - Array start marker
  • `Ae - Array end marker
  • `Os - Object start marker
  • `Oe - Object end marker
  • `Name of string - JSON object key as a JSON string
type t = json