module Jsonc_jsoo:sig
..end
Jsont
's js_of_ocaml
backend.
This backend uses the browser's JavaScript
JSON.{parse,stringify}
functions as a codec.
Limitations. The loc
and mem_dups
argument of Jsont.decoder
are unsupported.
typenat_string =
Js.js_string Js.t
type
soup
typeerror =
string
typesrc =
Js.js_string Js.t
type
decoder
val decoder : src -> decoder
decoder src
is a decoder that reads from src
.val decoder_src : decoder -> src
decoder_src d
is d
's source.typedst =
Js.js_string Js.t
type
encoder
val encoder : unit -> encoder
encoder ()
is a new encoder.val encoder_dst : encoder -> dst
encoder_dst e
is the result of the Jsont.encode
ing process.