I wanted to use the Preformatted style in the comment section to apply to a JSON code.
Note: JIRA is adding the double braces when trying to apply "Preformatted" style.
But doesn't work, just shows the double curly braces. So I thought maybe it's having problems escaping the curly brace from the JSON data, so tried to surround it first with "_", like:
Not working too. Also, it seems to be removing the newline chars within the the json data so the whole thing comes out in a single line.
There are some good JSON validators / formatters available online, which I use. I put your JSON in to one and it wasn't happy. Removed 2 braces at the beginning and 2 at the end and it was happy e.g.
Does it matter that the JSON all shows on one line? It doesn't in the formatter, but JSON is only used as a method of transferring data, so it shouldn't matter how it looks
Thank you for your reply but...
My query is about how to keep the JSON formatting in the Comments section of JIRA, using the Preformatted style, where it encloses the block with double braces. If it's not formatted properly, it's impossible to read it without formatting the text in another editor.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG