Module Jsont_jsoo

module Jsont_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.



JSON values


type nat_string = Js.js_string Js.t 
The type for native strings.
type soup 
The type for arbitrary undescribed JSON values

JSON decode


type error = string 
The type for decode errors.
type src = Js.js_string Js.t 
The type for decoding sources.
type decoder 
The type for 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.

JSON encode


type dst = Js.js_string Js.t 
The type for encoding destinations.
type encoder 
The type for encoders.
val encoder : unit -> encoder
encoder () is a new encoder.
val encoder_dst : encoder -> dst
encoder_dst e is the result of the Jsont.encodeing process.