Lotus.JSON (Lotus v1.0.0)

Copy Markdown View Source

JSON encoding and decoding used across Lotus.

Delegates to Elixir's built-in JSON module on v1.18 and later, falling back to Jason on earlier versions. Adapters that inline values into a statement body should escape through here rather than interpolating raw strings.

Summary

Functions

decode(data)

See JSON.decode/1.

decode!(data)

See JSON.decode!/1.

encode!(data)

See JSON.encode!/1.

encode_to_iodata!(data)

See JSON.encode_to_iodata!/1.

encoder()