PowerShell Snippets: Format Json for Curl

PowerShellThis post is part of the series on PowerShell Snippets.

The following PowerShell shows the format required for use in Curl (which I will cover in the next post of this series). It took me a number of attempts to get the format correct; the backticks (`) are needed to escape the double quotes (") for PowerShell and the backslashes (\) to escape them for the curl command:

$json = "
{...

Continue Reading azurecurve’s Article on their blog

PowerShell Snippets: Format Json for Curl

This post is part of the series on PowerShell Snippets. The following PowerShell shows the format required for use in Curl (which I will cover in the next post of this series). It took me a number‎…

Blog Syndicated with azurecurve’s Permission

Author: Ian Grieve

Share This Post On