JSON Viewer App is a handy macro for Confluence which allows Atlassian Confluence users to format and view  JSON objects within a Confluence page. The macro viewer supports different view modes namely plain text , Code & Tree view.

Product Documentation