Module B0_json

module B0_json: sig .. end
JSON text codec and queries.

Warning. The module assumes strings are UTF-8 encoded.

Generic JSON representation

type t = [ `A of t list
| `Bool of bool
| `Float of float
| `Null
| `O of (string * t) list
| `String of string ]
The type for generic JSON text representations.
val of_string : string -> t B0.result
of_string s parses JSON text from s according to RFC8259 with the following limitations:
val to_string : t -> string
to_string v is v as JSON text, encoded according to RFC8259
val for_string : string -> string
for_string s is to_string (`String s).
module Q: sig .. end
JSON value queries.
module G: sig .. end
JSON value generation.