package jsonxt

  1. Overview
  2. Docs

Basic supports standard Json types that are supported by the JSON standard but also supports integers rather than just floats

type json = [
  1. | `Null
  2. | `Bool of bool
  3. | `Int of int
  4. | `Float of float
  5. | `String of string
  6. | `As
  7. | `Ae
  8. | `Os
  9. | `Oe
  10. | `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
OCaml

Innovation. Community. Security.