View Source JSV.Codec (jsv v0.3.0)

JSON encoder/decoder based on available implementation.

Summary

Functions

decode(json)

@spec decode(binary()) :: {:ok, term()} | {:error, term()}

Equivalent to JSON.decode/1.

decode!(json)

@spec decode!(binary()) :: term()

Equivalent to JSON.decode!/1.

encode!(term)

@spec encode!(term()) :: binary()

Equivalent to JSON.encode!/1.