An Elixir Module that wraps the Erlang jiffy library.
Provides encode!/1
, encode!/2
, encode/1
, encode/2
, decode!/1
, decode!/2
, decode/1
, decode/2
functions for encoding and decoding JSON values.
NOTE: The jiffy functions by default all raise exceptions, so by definition the encode!
and decode!
functions will be faster as they are not wrapped in try/rescue clauses in order to catch any errors that come out of the jiffy library.
If available in Hex, the package can be installed
by adding jiffy_ex
to your list of dependencies in mix.exs
:
def deps do
[
{:jiffy_ex, "~> 1.1"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/jiffy_ex.