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/Basic/index.html

Module Json_stream.BasicSource

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

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