Thought this would be pretty simple, but alas, I can't figure it out. It appears that PowerShell will prettify JSON with a single cmdlet.
Goal: Prettify JSON using a PowerShell Azure Function app
- Using Microsoft Flow, send an HTTP request (POST) to an Azure Function w/ "ugly", serialized JSON file in body
- Azure Function reads file in (then uses
ConvertToJsoncmdlet to prettify?) and outputs the file back to Flow
Questions:


I have taken below serialize string
which was mentioned in Prettify json in powershell 3
Here is my function which i used with HttpPost and send the request:
and below you can see , i am able to read it from the string which i posted.
You can use
ConvertFrom-Jsonto convert it but i wondering if you even need it as you can access it by doing below:my binding is same as yours. Hope it helps.
Let me know if you still need any help.