2 ms·
> Powershell should properly escape JSON You can escape things with `. So "{`"foo`": `"an \`"escaped \`" value`"}". Or because powershell has types and object
by bbatha 8y ago
> Powershell should properly escape JSON
You can escape things with `. So "{`"foo`": `"an \`"escaped \`" value`"}". Or because powershell has types and objects you can just use native objects and hashes, then pipe it to `ConvertTo-Json` when you need a string.[0]
> Powershell is completely alien and I know of no free way to try it
Powershell is opensource and cross-platform as of last year. [1] Though its still definitely windows first.
0: http://wahlnetwork.com/2016/02/18/using-powershell-arrays-and-hashtables-with-json-formatting/ http://wahlnetwork.com/2016/02/18/using-powershell-arrays-an...
1: https://github.com/PowerShell/PowerShell https://github.com/PowerShell/PowerShell