Packages
Generic Elixir models and portable validation for RelayMark documents and manifests
Current section
Files
Jump to
Current section
Files
lib/relay_mark/json.ex
defmodule RelayMark.JSON do
@moduledoc false
@spec decode(binary()) :: {:ok, term()} | {:error, term()}
def decode(json) when is_binary(json), do: Jason.decode(json)
end