package jsonoo
Module Jsonoo.DecodeSource
The type for decoder functions which turn JSON into an OCaml value
functions that are unsuccessful in decoding the JSON raise Decode_error
Transform a decoder so it decodes nulls as None and other decoded values as Some
Decode a JSON array of values based on the given decoder
Decode a 2-element JSON array with the given decoders
Decode a 2-element JSON array with the given decoders
Decode a 3-element JSON array with the given decoders
val tuple4 :
'a decoder ->
'b decoder ->
'c decoder ->
'd decoder ->
('a * 'b * 'c * 'd) decoderDecode a 4-element JSON array with the given decoders
Decode a JSON dictionary as a hash table of strings to decoded values
Decode an element of a JSON dictionary with the decoder
Follow a list of field names and decode the final element with the decoder
Catch Decode_error, return a default value if raised
Try a list of decoders until one succeeds, raise Decode_error if none succeed
Try two decoders, raise Decode_error if neither succeed