Module B00_serialk_json.Json

val loc_nil : loc
type mem = (string * loc) * t
and t = [
  1. | `A of t list * loc
  2. | `Bool of bool * loc
  3. | `Float of float * loc
  4. | `Null of loc
  5. | `O of mem list * loc
  6. | `String of string * loc
]
val loc : t -> loc
val null : t
val bool : bool -> t
val float : float -> t
val string : string -> t
val array : t list -> t
val mem : string -> t -> mem
val obj : mem list -> t
val to_null : t -> (unit, string) result
val to_bool : t -> (bool, string) result
val to_float : t -> (float, string) result
val to_array : t -> (t list, string) result
val to_obj : t -> (mem list, string) result
val get_null : t -> unit
val get_bool : t -> bool
val get_float : t -> float
val get_string : t -> string
val get_array : t -> t list
val get_obj : t -> mem list
val pp : Format.formatter -> t -> unit
val of_string : ?file:B00_serialk_text.Tloc.fpath -> string -> (t, string) result
val to_string : t -> string