# `JSON.LD.Decoder`
[🔗](https://github.com/rdf-elixir/jsonld-ex/blob/v1.0.1/lib/json/ld/decoder.ex#L1)

A decoder for JSON-LD serializations to `RDF.Dataset`s.

As for all decoders of `RDF.Serialization.Format`s, you normally won't use these
functions directly, but via one of the `read_` functions on the `JSON.LD` format
module or the generic `RDF.Serialization` module.

# `node_to_rdf`

```elixir
@spec node_to_rdf(String.t()) :: RDF.IRI.t() | RDF.BlankNode.t() | nil
```

# `parse_json`

```elixir
@spec parse_json(String.t(), [Jason.decode_opt()]) ::
  {:ok, map()} | {:error, Jason.DecodeError.t()}
```

# `parse_json!`

```elixir
@spec parse_json!(String.t(), [Jason.decode_opt()]) :: map()
```

# `to_rdf`

```elixir
@spec to_rdf(JSON.LD.input(), JSON.LD.Options.t() | Enum.t()) ::
  RDF.Dataset.t() | RDF.Graph.t()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
