Module Json_stream.Basic

type json = [
| `Null
| `Bool of bool
| `Int of int
| `Float of float
| `String of string
| `As
| `Ae
| `Os
| `Oe
| `Name of string
]

The following polymorphic variants are supported

  • `Null: JSON null
  • `Bool of bool: JSON boolean
  • `Int of int: JSON number without decimal point or exponent
  • `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