JSON Macro Usage
Adding a JSON Macro in Confluence
You can add the JSON macro to any Confluence page or blog.
- Start in edit mode of the page or blog
- Click on the "+" at the top of the page
- Find "JSON Viewer" from the drop-down list or click "Other macros"
- Search for JSON viewer Macro in the search bar
- The Insert JSON Viewer dialog will open
- Enter the view mode, width & height in the boxes
- Click "Insert"
- Copy and paste a valid JSON object in the macro body
- Save the page
Macro Options
Mode
Macro Viewer supports plain text, code & tree view modes.
Configure JSON view mode based on your preference
Width
The "Width" option allows users to configure the width of the macro block. Default width is 500 px.
Height
The "Height" option allows users to configure the height of the macro block. Default width is 200 px.
Editing JSON Macro in Confluence
Start editing your JSON Confluence Block:
- Start in edit mode of the page or blog
- Select the macro and click edit option
- Change the macro options and click save
- Change the JSON content in macro body if needed.
- Save the page
JSON Validation
JSON Viewer Macro for Confluence detects any syntax errors in your JSON Object and highlights them on Page Publish.
JSON Object Validation
To correct syntax errors enter a valid JSON object in the macro body