cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pbo
Regular Visitor

Formating JSON in file

Hi!

 

I need to save JSON in a file that is already formatted.

Final result should looks like:

 

[
	{
		"name": "Respond_to_a_PowerApp_or_flow",
		"inputs": {
			"statusCode": "200",
			"body": {
				"validatedstringoutput": "[{\\y.\\\"}}]"
			},
			"schema": {
				"type": "object",
				"properties": {
					"validatedstringoutput": {
						"title": "ValidatedStringOutput",
						"x-ms-dynamically-added": true,
						"type": "string"
					}
				}
			}
		}
	}
]

 

Not like:

 

[{"name": "Respond_to_a_PowerApp_or_flow","inputs": {"statusCode": "200","body": {"validatedstringoutput": "[{\\y.\\\"}}]"},"schema": {"type": "object","properties": {"validatedstringoutput": {"title": "ValidatedStringOutput","x-ms-dynamically-added": true,"type": "string"}}}}}]

 

Any ideas?

1 REPLY 1
v-litu-msft
Community Support
Community Support

Hi @pbo,

 

After a series of tests, I don't think this is possible. Do you want this file to be readable? Is this file type .json?

 

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

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,714)