json
, jsonb
Behaviours: epgsql_codec.
This module defines the epgsql_codec_json behaviour.
Required callback functions: encode/1, decode/1.
Optional callback functions: encode/2, decode/2.
Codec for json
, jsonb
json_mod()
.
json
jsonb
data() = binary()
json_mod() = module() | {module(), EncodeOpts::any(), DecodeOpts::any()}
decode/3 | |
decode_text/3 | |
encode/3 | |
init/2 | |
names/0 |
decode(Bin, X2, JsonMod) -> any()
decode_text(V, X2, X3) -> any()
encode(ErlJson, X2, JsonMod) -> any()
init(JsonMod::json_mod(), X2::epgsql_sock:pg_sock()) -> epgsql_codec:codec_state()
names() -> any()
Generated by EDoc