Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type 'a encoder = 'a -> t
The type for encoder functions which turn ocaml values into JSON
val null : t
The null JSON value
val bool : bool encoder
Encode a boolean into a JSON boolean
val float : float encoder
Encode a float as a JSON number
val int : int encoder
encode an integer as JSON number
val string : string encoder
Encode a string as a JSON string
val char : char encoder
Encode a character as a JSON string
Encode a value with the decoder if Some
, return a JSON null if None
Encode a 3-element tuple as a JSON array
Encode a 4-element tuple as a JSON array