z_json (zotonic_core v1.0.0-rc.14)
Link to this section Summary
Functions
Decode a JSON binary to an Erlang term.
Encode an Erlang term to JSON.
JSON escape for safe quoting of JSON strings. Subtly different from JS escape, see http://www.json.org/
Link to this section Functions
Link to this function
decode(Json)
-spec decode(binary() | undefined) -> term().
Link to this function
encode(Erlang)
-spec encode(binary() | map() | list() | undefined) -> binary().
Link to this function
json_escape(Value)
-spec json_escape(iodata() | undefined) -> iodata().