Rubber v0.9.0 Rubber.JSON.Codec behaviour

A behaviour for JSON serialization.

Link to this section Summary

Link to this section Callbacks

Link to this callback decode(json, opts)
decode(json :: iodata(), opts :: []) :: {:ok, any()} | {:error, :invalid}
Link to this callback encode!(data)
encode!(data :: any()) :: iodata()