B0_json.JsongJSON value generation.
val null : tnull is the generated JSON null value.
val bool : bool -> tbool b is b as a generated JSON boolean value.
val int : int -> tint i is i as a generated JSON number.
val float : float -> tfloat f is f as a generated JSON number.
val string : string -> tstr s is s as a generated JSON string value.
val array : arrayarray is an empty array.
el cond v arr is el (v ()) arr if cond is true and arr otherwise.
val obj : objobj is an empty object.
mem_if cond name v o is mem name (v ()) o if cond is true and o otherwise.
val strf : ('a, Stdlib.Format.formatter, unit, t) Stdlib.format4 -> 'astrf fmt ... is a JSON string generated value formatted according to fmt.
option some o is o as a generated JSON value which is null if o is None and some v if o is some v.
list el l is l as a generated JSON array whose elements are generated using el.
val buffer_add : Stdlib.Buffer.t -> t -> unitbuffer_add b g adds the generated JSON value g to b.
val to_string : t -> stringto_string g is the generated JSON value g as a string.