Module B0_web.Json

module Json: sig .. end
JSON text codec.

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, string) Pervasives.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