Module Jsonxt.Json_stream

Json stream types for the various compliance levels

type json = [
| `Null
| `Bool of bool
| `Int of int
| `Intlit of string
| `Float of float
| `Floatlit of string
| `String of string
| `Stringlit of string
| `As
| `Ae
| `Os
| `Oe
| `Ts
| `Te
| `Vs
| `Ve
| `Name of string
| `Infinity
| `Neg_infinity
| `Nan
]

The following polymorphic variants are supported by Jsonxt

  • `Null: JSON null
  • `Bool of bool: JSON boolean
  • `Int of int: JSON number without decimal point or exponent
  • `Intlit of string: JSON number without decimal point or exponent preserved as a string
  • `Float of float: JSON number, inf, -inf, Infinity, -Infinity, nan, -nan, NaN or -NaN
  • `Floatlit of string: JSON number preserved as a string
  • `String of string: JSON string with characters in the range 128-255 preserved
  • `Stringlit of string: JSON string including the double quotes
  • `As - Array start marker
  • `Ae - Array end marker
  • `Os - Object start marker
  • `Oe - Object end marker
  • `Ts - Tuple start marker
  • `Te - Tuple end marger
  • `Vs - Variant start marger
  • `Ve - Variant end marger
  • `Name of string - JSON object key as a JSON string
  • `Infinity - Infinity
  • `Neg_infinity - -Infinity
  • `Nan - NaN
type t = json
module Extended : sig ... end
module Basic : sig ... end
module Strict : sig ... end