Jaxon v2.0.2 Jaxon View Source
Main Jaxon module.
Link to this section Summary
Link to this section Types
Link to this section Functions
Decode a string.
iex> Jaxon.decode(~s({"jaxon":"rocks","array":[1,2]}))
{:ok, %{"array" => [1, 2], "jaxon" => "rocks"}}
Link to this function
decode!(binary)
View Sourcedecode!(String.t()) :: Jaxon.json_term() | no_return()
Decode a string, throws if there's an error.
iex(1)> Jaxon.decode!(~s({"jaxon":"rocks","array":[1,2]}))
%{"array" => [1, 2], "jaxon" => "rocks"}