cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Retain JSON formatting when using in Create file

Hi,

 

I have a JSON response from a HTTP request which I want to retain the formatiing on. What I am experiencing is that when I place my JSON into a file content it flattens it onto one line. I need it formatted as JSON as I am subsequently using it for a PowerShell.

 

I need to retain the json on separate lines like this
{
"mail": "pretend@email adress",
"otherMails": "pretend@email adress"
},
{
"mail": "pretend@email adress",
"otherMails": "pretend@email adress"
}

 

However when I place it into the file content it always saves on one line.
Screenshot 2019-09-03_17-44-33-217.pngScreenshot 2019-09-03_17-40-56-719.pngScreenshot 2019-09-03_17-42-33-493.pngScreenshot 2019-09-03_17-43-07-047.png

When I use the create file action I create the outer JSON manually then place the variable in the middle.

Screenshot 2019-09-03_17-52-29-149.png

 

Thanks,

Yvonne

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper V
Helper V
1 REPLY 1
Highlighted
Helper V
Helper V

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

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