# `PgFlowDashboard.Components.JsonViewer`
[🔗](https://github.com/agoodway/pgflow/blob/v0.3.1/lib/pgflow_dashboard/components/json_viewer.ex#L1)

Server-rendered, syntax-styled JSON with an optional copy action.

# `json_viewer`

Renders JSON-compatible data with semantic syntax tokens.

Values are emitted through HEEx so payload content remains HTML escaped.

## Attributes

* `id` (`:string`) (required)
* `data` (`:any`) (required)
* `class` (`:any`) - Defaults to `nil`.

---

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