Postgres module

decode_json

procedure · 1 overloadsince 0.27.0Source

Decodes a document into a T.

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

See also