cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Yvonne11
New Member

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
Lisabel0 Helper V
Helper V

Re: Retain JSON formatting when using in Create file

1 REPLY 1
Lisabel0 Helper V
Helper V

Re: Retain JSON formatting when using in Create file

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Attending MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’re streaming the digital event live, or watching on-demand, claim your attendee badge to sport on your profile.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We're launching a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Emergency Response & Monitoring Solution

Emergency Response & Monitoring Solution

Microsoft has created a regional government emergency response and monitoring solution that is built on Power Apps and Power BI.

Top Solution Authors
Top Kudoed Authors
Users online (5,142)