Forums

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

How to export a confluence page to a json file

Mic
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!
January 11, 2024

using Confluence API token, i can create a confluence page from a json file as a template. once after a confluence page is created, i update the content of the page, then i would like to convert it to a json file to update the template.  however, i do not have any idea how to convert it to a json file format.  would anyone advise how to do it?

2 answers

0 votes
Aron Gombas _Midori_
Community Champion
January 12, 2024

When you get the page from the /content REST API end-point, it will return you the page content in ADF format which itself is a JSON dialect.

0 votes
Nikola Perisic
Community Champion
January 12, 2024

Hello @Mic ,

Since the XML format would be the closest to JSON, in that case I would convert to JSON. Try with this site: https://codebeautify.org/xmltojson

Let me know the results.

BR,

Nikola

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events