Current section
Files
Jump to
Current section
Files
lib/jeson.ex
defmodule Jeson do
@moduledoc """
Documentation for `Jeson`.
"""
@doc """
parse(data) receive binary data and return {:ok, @json_value} | {:error, String}
## Examples
iex> data = ~s({"obj": {"neste": true}})
iex> Jeson.parse(data)
"""
@spec parse(binary()) :: {:ok, any()} | {:error, String.t()}
def parse(data) when is_binary(data) do
Parser.parse(data)
end
end