Copyright © 2013 Yuriy Iskra <iskra.yw@gmail.com>
JSONX is an Erlang library for efficient decode and encode JSON, written in C. Works with binaries as strings, arrays as lists and it only knows how to decode UTF-8 (and ASCII).
| decode/1 | Decode JSON to Erlang term. |
| decode/2 | Decode JSON to Erlang term with options. |
| decoder/1 | Build a JSON decoder. |
| decoder/2 | Build a JSON decoder with output undefined objects. |
| encode/1 | Encode JSON. |
| encoder/1 | Build a JSON encoder. |
| encoder/2 | Build a JSON encoder. |
decode(JSON) -> JSON_TERM
JSON = binary()JSON_TERM = any()
Decode JSON to Erlang term.
decode(JSON, OPTIONS) -> JSON_TERM
JSON = binary()OPTIONS = [{format, struct | eep18 | proplist}]JSON_TERM = any()
Decode JSON to Erlang term with options.
decoder(RECORDS_DESC) -> DECODER
RECORDS_DESC = [{tag, [names]}]DECODER = function()
Build a JSON decoder.
decoder(RECORDS_DESC, OPTIONS) -> DECODER
RECORDS_DESC = [{tag, [names]}]OPTIONS = [{format, struct | eep18 | proplist}]DECODER = function()
Build a JSON decoder with output undefined objects.
encode(JSON_TERM) -> JSON
JSON = binary()JSON_TERM = any()
Encode JSON.
encoder(RECORDS_DESC) -> ENCODER
RECORDS_DESC = [{tag, [names]}]ENCODER = function()
Build a JSON encoder.
encoder(RECORDS_DESC, OPTIONS) -> ENCODER
RECORDS_DESC = [{tag, [names]}]OPTIONS = [{ignore, [atom()]}]ENCODER = function()
Build a JSON encoder.
Generated by EDoc