tiny_json_conv / lib / json_conv.mli

open Tiny_json
open Meta_conv.Open

include Meta_conv.Types.S with type target = Json.t

val json_of_int       : int encoder
val json_of_nativeint : nativeint encoder
val json_of_unit      : unit encoder
val json_of_bool      : bool encoder
val json_of_int32     : int32 encoder
val json_of_int64     : int64 encoder
val json_of_float     : float encoder
val json_of_char      : char encoder
val json_of_string    : string encoder
val json_of_list      : 'a encoder -> 'a list encoder
val json_of_array     : 'a encoder -> 'a array encoder
val json_of_option    : 'a encoder -> 'a option encoder
val json_of_lazy_t    : 'a encoder -> 'a Lazy.t encoder
(* val json_of_mc_lazy_t : 'a encoder -> ('a, target) mc_lazy_t encoder *)
val json_of_mc_fields : 'a encoder -> (string * 'a) list encoder

val int_of_json       : int decoder
val nativeint_of_json : nativeint decoder
val unit_of_json      : unit decoder
val bool_of_json      : bool decoder
val int32_of_json     : int32 decoder
val int64_of_json     : int64 decoder
val float_of_json     : float decoder
val char_of_json      : char decoder
val string_of_json    : string decoder
val list_of_json      : 'a decoder -> 'a list decoder
val array_of_json     : 'a decoder -> 'a array decoder
val option_of_json    : 'a decoder -> 'a option decoder
val lazy_t_of_json    : 'a decoder -> 'a lazy_t decoder
val mc_lazy_t_of_json : 'a decoder -> ('a, target) mc_lazy_t decoder
val mc_fields_of_json : 'a decoder -> (string * 'a) list decoder
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.