Copyright © 2017 crownedgrouse.com
Authors: Eric Pailleau (jason@crownedgrouse.com).
decode/1 | Decode JSON data. |
decode/2 | Decode JSON data with options. |
decode_file/1 | Decode JSON file. |
decode_file/2 | Decode JSON file with options. |
decode_stream/1 | Decode stream Argument is an io_device() (either pid() or fd() from raw mode) First call create a finite statemachine and return {ok, ref()} or {error, Reason}. |
decode_stream/2 | |
dump/1 | Dump argonaut module of aliases to. |
dump/2 | |
encode/1 | Encode Erlang data to JSON. |
encode/2 | Encode Erlang data to JSON with options. |
encode_file/2 | Encode Erlang data to JSON file. |
encode_file/3 | Encode Erlang data to JSON file with options. |
pp/1 | Pretty print JSON data. |
pp/2 | Pretty print JSON data. |
types/0 | Display types transformation. |
decode(Json::any()) -> any()
Decode JSON data
decode(Json::any(), Opt::list()) -> any()
Decode JSON data with options
decode_file(F::list()) -> any()
Decode JSON file
decode_file(F::list(), Opt::list()) -> any()
Decode JSON file with options
decode_stream(R) -> any()
Decode stream Argument is an io_device() (either pid() or fd() from raw mode) First call create a finite statemachine and return {ok, ref()} or {error, Reason}. Where ref() is the finite state machine global name . All subsequent calls to decode_stream(ref()) will return 'sofar', 'end' or {'sofar', Term} Call to decode_stream(ref(), integer()) allow to specify how many bytes to read (sticky until another change). Default to 1024 bytes at start. 'sofar' means that no JSON term could be decoded for the moment, another call(s) are needed.
decode_stream(R, B) -> any()
dump(Dir::list()) -> ok | {error, atom(), list()}
Dump argonaut module of aliases to
dump(Dir, Module) -> any()
encode(Term::any()) -> list()
Encode Erlang data to JSON
encode(Term::any(), O::list()) -> list()
Encode Erlang data to JSON with options
encode_file(Term::term(), Target::list()) -> ok | {error, atom()}
Encode Erlang data to JSON file
encode_file(Term::any, Target::list(), Opt::list()) -> atom()
Encode Erlang data to JSON file with options
pp(C::list()) -> list()
Pretty print JSON data
pp(C::term(), Style::maybe_improper_list() | {pp, term(), term(), term(), term(), term()}) -> [any()]
Pretty print JSON data
types() -> ok
Display types transformation
Generated by EDoc