Module jsonx

JSONX is an Erlang library for efficient decode and encode JSON, written in C.

Copyright © 2013 Yuriy Iskra <iskra.yw@gmail.com>

Description

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 (json -> erlang)

Encode (erlang -> json)

Function Index

decode/1Decode JSON to Erlang term.
decode/2Decode JSON to Erlang term with options.
decoder/1Build a JSON decoder.
decoder/2Build a JSON decoder with output undefined objects.
encode/1Encode JSON.
encoder/1Build a JSON encoder.
encoder/2Build a JSON encoder.

Function Details

decode/1

decode(JSON) -> JSON_TERM

Decode JSON to Erlang term.

decode/2

decode(JSON, OPTIONS) -> JSON_TERM

Decode JSON to Erlang term with options.

decoder/1

decoder(RECORDS_DESC) -> DECODER

Build a JSON decoder.

decoder/2

decoder(RECORDS_DESC, OPTIONS) -> DECODER

Build a JSON decoder with output undefined objects.

encode/1

encode(JSON_TERM) -> JSON

Encode JSON.

encoder/1

encoder(RECORDS_DESC) -> ENCODER

Build a JSON encoder.

encoder/2

encoder(RECORDS_DESC, OPTIONS) -> ENCODER

Build a JSON encoder.


Generated by EDoc