# `ClaudeAgentSDK.JSON`
[🔗](https://github.com/nshkrdotcom/claude_agent_sdk/blob/v0.16.0/lib/claude_agent_sdk/json.ex#L1)

JSON decoding wrapper for Claude Agent SDK.

Prefers OTP's built-in `:json` decoder when available and falls back to `Jason`
on older OTP releases.

# `decode`

```elixir
@spec decode(String.t()) :: {:ok, term()} | {:error, :invalid_json}
```

---

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