Decodes a document into a T.
- T: the type to decode into.
- raw: the document.
- options: decoding options for this call; the defaults leave the Json module's own.
decode_json :: (
$T: Type,
raw: Json_Raw,
options := Json_Options.{}
) -> (T, Json_Module.Json_Error)
Decodes a document into a T.
Parameters
- $T: Type
- the type to decode into.
- raw: Json_Raw
- the document.
- options := Json_Options.{}
- decoding options for this call; the defaults leave the Json module's own.
Returns
- T