decode/1 | decode a binary to an EJSON term. |
encode/1 | encode an erlang term to JSON. |
post_decode/1 |
decode(D::binary()) -> ejson()
decode a binary to an EJSON term. Throw an exception if there is any error.
encode(D::ejson()) -> binary()
encode an erlang term to JSON. Throw an exception if there is any error.
post_decode(Rest) -> any()