Jaxon.decode

You're seeing just the function decode, go back to Jaxon module for more information.

Specs

decode(String.t()) ::
  {:ok, json_term()}
  | {:error,
     %Jaxon.ParseError{
       __exception__: term(),
       expected: term(),
       message: term(),
       unexpected: term()
     }}

Decode a string.

iex> Jaxon.decode(~s({"jaxon":"rocks","array":[1,2]}))
{:ok, %{"array" => [1, 2], "jaxon" => "rocks"}}