ex_easypost v1.0.2 ExEasyPost.Parser.JSON behaviour

Defines the specification for a JSON parser.

ExEasyPost supports the use of your favorite JSON parser provided it fulfills this specification. Poison fulfills this spec without modification, and is the default.

Link to this section Summary

Link to this section Callbacks

Link to this callback decode(arg0)
decode(String.t()) :: {:ok, %{}} | {:error, %{}}
Link to this callback decode!(arg0)
decode!(String.t()) :: %{}
Link to this callback encode(%{})
encode(%{}) :: {:ok, String.t()} | {:error, String.t()}
Link to this callback encode!(%{})
encode!(%{}) :: String.t()