Module Deriving_JsonSource
Typesafe IO (based on the deriving library).
The type of JSON parser/printer for value of type 'a.
Source
val make :
(Stdlib.Buffer.t -> 'a -> unit) ->
(Deriving_Json_lexer.lexbuf -> 'a) ->
'a Deriving_Json.tto_string Json.t<ty> v marshal the v of type ty to a JSON string.
from_string Json.t<ty> s safely unmarshal the JSON s into an OCaml value of type ty. Throws Failure if the received value isn't the javascript representation of a value of type ty.
Deriver
Source
val read_ref :
(Deriving_Json_lexer.lexbuf -> 'a) ->
Deriving_Json_lexer.lexbuf ->
'a Stdlib.refSource
val read_option :
(Deriving_Json_lexer.lexbuf -> 'a) ->
Deriving_Json_lexer.lexbuf ->
'a option