Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
JSON documents.
val string_of_range : range -> string
exception Error of error
val error : error -> 'a
error e
raises Error e
.
type key = string ranged
val string_of_error : range -> Jsonm.error -> string
val from_string_exn : ?encoding:[< Jsonm.encoding ] -> string -> json
val to_string : ?minify:bool -> json -> string
to_string json
returns the given json
in JSON syntax. Optional argument minify
(default false
) indicates whether to minify the output.
val pp : Stdlib.Format.formatter -> json -> unit
pp ppf json
pretty-prints json
to ppf
.
val null : json
val is_scalar : json -> bool
val is_string_array : json -> bool
val string_of_json_opt : json option -> string
val map_pp : Stdlib.Format.formatter -> map -> unit
val opt_map_pp : Stdlib.Format.formatter -> map option -> unit