# `OpenrouterSdk.JSON`
[🔗](https://github.com/zmzlois/openrouter_sdk/blob/v0.1.0/lib/openrouter_sdk/json.ex#L1)

thin shim around json encode/decode.

prefers the built-in `JSON` module that ships with elixir 1.18+. falls
back to `Jason` if it's available — handy for hosts that already pull
it in.

# `decode`

```elixir
@spec decode(binary()) :: {:ok, term()} | {:error, term()}
```

decode a json binary into elixir terms. returns {:ok, term} | {:error, reason}

# `encode!`

```elixir
@spec encode!(term()) :: iodata()
```

encode a term to an iodata json payload

---

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