Module B0_web.Json
JSON text codec.
Warning. The module assumes strings are UTF-8 encoded.
Generic JSON representation
type t=[|`Null|`Bool of bool|`Float of float|`String of string|`A of t list|`O of (string * t) list]The type for generic JSON text representations.
val of_string : string -> (t, string) Stdlib.resultof_string sparses JSON text fromsaccording to RFC8259 with the following limitations:- Numbers are parsed with
string_of_floatwhich is not compliant. - Unicode escapes are left unparsed (this will not round trip with
to_string).
- Numbers are parsed with