Module CConvYojson

module CConvYojson: sig .. end

Interface to Yojson



type 'a or_error = [ `Error of string | `Ok of 'a ] 
type t = Yojson.Basic.json 
val target : t CConv.Encode.target
val source : t CConv.Decode.source
val encode : 'src CConv.Encode.encoder -> 'src -> t
val decode_exn : 'into CConv.Decode.decoder -> t -> 'into
val decode : 'into CConv.Decode.decoder -> t -> 'into or_error
val to_string : 'a CConv.Encode.encoder -> 'a -> string
val of_string : 'a CConv.Decode.decoder -> string -> 'a or_error
val of_string_exn : 'a CConv.Decode.decoder -> string -> 'a
val json_to_string : t -> string