ocibuild_json (ocibuild v0.10.4)

View Source

JSON encoding/decoding wrapper.

This module wraps OTP 27's json module with convenience functions for OCI-specific JSON handling.

Summary

Functions

Decode a JSON binary to an Erlang term. Objects are decoded as maps, arrays as lists.

Encode an Erlang term to JSON binary.

Functions

decode(Json)

-spec decode(binary()) -> term().

Decode a JSON binary to an Erlang term. Objects are decoded as maps, arrays as lists.

encode(Term)

-spec encode(term()) -> binary().

Encode an Erlang term to JSON binary.