Module z_json

JSON support routines.

Copyright © 2012-2021 Marc Worrell

Authors: Marc Worrell.

Description

JSON support routines.

Function Index

decode/1Decode a JSON binary to an Erlang term.
encode/1Encode an Erlang term to JSON.
json_escape/1JSON escape for safe quoting of JSON strings.

Function Details

decode/1

decode(Json::binary() | undefined) -> term()

Decode a JSON binary to an Erlang term.

encode/1

encode(Erlang::binary() | map() | list() | undefined) -> binary()

Encode an Erlang term to JSON.

json_escape/1

json_escape(Value::iodata() | undefined) -> iodata()

JSON escape for safe quoting of JSON strings. Subtly different from JS escape, see http://www.json.org/


Generated by EDoc