Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Native browser representation of JSON documents
module Repr : Json_repr.Repr with type value = value
A view over the browser representation.
module Json_encoding : sig ... end
Pre-instanciated Json_encoding.Make
.
module Json_query : sig ... end
Pre-instanciated Json_encoding.Make
.
val parse : string -> value
Parse a JSON string using the native browser parser.
val stringify : ?indent:int -> value -> string
Produce a JSON string using the native browser printer.
If indent is not present, everything is printed on a single line. Otherwise, it is the number (up to 10) of spaces inserted at beginning of lines for each indentation level.
val parse_js_string : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t -> value
Same as parse
with native browser strings.
val js_stringify :
?indent:int ->
value ->
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t
Same as stringify
with native browser strings.