## [JSON Formatting & Display in Confluence: Code Blocks vs Structure Viewer](/blog/confluence-json-schema-viewer.md)

May 10, 2026 ·

<!-- -->

4 min read

[NGPilot](https://ngpilot.com)

Confluence's native code block macro renders JSON as plain text with no real formatting, no themes, and no copy button. There are two purpose-built apps that fix this, and each serves a different JSON display need:

* **[Modern Code Blocks for Confluence](/docs/Modern-Code-Blocks-for-Confluence/user-docs.md)** — renders JSON as **syntax-highlighted code** with the Monaco editor (VS Code engine), 50+ themes, line numbers, copy button, and dark/light mode. **Best for API docs, snippets, and most JSON display.**
* **[JSON Structure Viewer for Confluence](/docs/json-structure-viewer-for-confluence/usage.md)** — renders JSON as an **interactive collapsible tree** you can zoom and rotate. **Best for exploring large, deeply nested structures.**

This guide compares the two so you can pick the right one for each page.

**Tags:**

* [confluence](/blog/tags/confluence.md)
* [json](/blog/tags/json.md)
* [json-schema](/blog/tags/json-schema.md)
* [api-documentation](/blog/tags/api-documentation.md)
* [code-blocks](/blog/tags/code-blocks.md)

[**Read more**](/blog/confluence-json-schema-viewer.md)
