web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Formatting JSON object...
Power Automate
Unanswered

Formatting JSON object that is added to a SharePoint list item

(1) ShareShare
ReportReport
Posted on by 127

I have a JSON object that I would like to be formatted with indents when adding the Json object to an item in SharePoint, similar to the method that is available in PowerApps "JSONFormat.IndentFour". 

 

It is difficult to read the JSON object in SharePoint when it is formatted as a single-line string.

 

Any ideas would be greatly appreciated.

Categories:
  • sandeepstw Profile Picture
    312 Moderator on at

    Hi There, 

     

    To format a JSON object with indents in SharePoint, use the "Parse JSON" action in Power Automate to parse the JSON string.

    Add the parsed JSON object to the "Compose" action. This action will inherently format the JSON with indents. Store the output of the "Compose" action to the desired SharePoint item field.

     

    Please give kudos and mark as solution if it helps.  

      

    Thanks, 

    Sandeep Mishra 

  • Tono_Analyst2 Profile Picture
    127 on at

    Hi @sandeepstw, 

     

    Thanks for your reply - however, your solution did not work. It is still not formatted with indents in SharePoint.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard