package jsonxt

  1. Overview
  2. Docs
Jsonxt - JSON parsers for files, strings and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

jsonxt-v1.0.1.tbz
sha256=71eb44d6e6deefa4b3ba7595d22f8e684ffb686c6a306679489c4e09779ee96b
sha512=4ca7c252d8cd3d3eb39f8094d16c7e1b14968ab61b314c1937248209785bedf434c2b422eb5961d896a41cd70565f9675f11f26b2ccc4e1e34c30260eed5d97b

doc/jsonxt/Jsonxt/Json_stream/Strict/index.html

Module Json_stream.StrictSource

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

Sourcetype 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
Sourcetype t = json