Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Display formatted JSON data/attachments (ConfiDoc Macro?)

Frank Leverenz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 29, 2023

Hi,

In Jira I can display JSON data with "+" "code" correctly formatted

In Confluence I didn't find a solution. 

Is the ConfiDoc macro the only way?

I tried it with this config, but it didn't work as I expected:

ConfiDoc ListVew Macro.jpg

Frank

1 answer

1 accepted

0 votes
Answer accepted
Tim Kopperud
Community Champion
October 2, 2023

Hi @Frank Leverenz

You can display formatted JSON on a page by using the Code Snippet macro.

json.png

Without a third party app, I don't think you will be able to see a preview from a JSON attachment without clicking on the the attachment icon.

jsonatt.png

Preview clicking the demo.json icon opens this:

jsonattprev.png

You might also see this document

TimK.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events