How do I parse through the body information returned as an ADF?

Ginna Khang
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 21, 2023

I used the following code from the REST API doc  to get the page and expanded the body to ADF. How can I access the information in the body and parse through the ADF data returned?

 

 

1 answer

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 22, 2023

Well, Atlassian Document Format (ADF) is just a custom JSON dialect. It means any general JSON tool can work with it.

So, you should look for a JSON parser that allows you to iterate over the JSON and get the value of the fields that contain the "body information". Each node type is a bit different, but it is mostly the "text" field that is interesting for you!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events