Showing results for 
Search instead for 
Did you mean: 
Super User
Super User

Prettify JSON?

Hello, need some help on this one...

  • Have a JSON file that is "serialized" meaning, 1 long string.
  • Want to "prettify it" meaning, to format it correctly with indents, etc.
  • With the help of others, I created an Azure Function that uses PowerShell to prettify.
  • The response from the Azure Function is indeed formatted correctly.
  • BUT... the Create a File action for OneDrive For Business converts the JSON back to a serial string!

How can I prettify JSON in Flow OR leave formatted JSON as formatted JSON when creating a file? 


  1. Flow overview
    1. image.png
  2. Original file, serialized JSON
    1. image.png
  3. Response from Azure Function (pretty)
    1. image.png
  4. Re-created file, back to serialized JSON
    1. image.png
Community Support
Community Support

Re: Prettify JSON?


Hi @ericonline ,


I am afraid that the format you expect cannot be modified by Flow.

Since its file type is already .json, it will not affect subsequent use.

Please consider adding some extensions in Visual Studio Code to automatically decorate json data into the expected format.


Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (7,614)