The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Confluence page body as JSON

Arjun
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!
August 22, 2022

Hi,

I am using this API link to get the content of the page. https://company.sev/rest/api/content/page_id?expand=body.view

I am getting the page details in JSON. However, this returns the table data only in the HTML format. I was wondering if there is a way we can get its corresponding JSON value for the same.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Dominic Lagger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 22, 2022

Hi @Arjun 

The result is always in JSON and you have to format it to JSON by yourself.

But I think, there are a lot of libraries which do it for you. Just google it :) 

Regards, Dominic

TAGS
AUG Leaders

Atlassian Community Events