Fixed in v7.0.0-preview.6
If JSON represents an array then ConvertFrom-Json
returns this array not
unrolled. This may cause subtle issues in some scenarios.
Scripts
- Test-1.Issue.ps1 shows the issue
- Test-2.Workaround.ps1 shows the workaround with a variable
- Test-3.Workaround.ps1 shows the workaround with parenthesis
- ConvertFrom-Json: Unwrap Collections by default #10861
- Invoke-RestMethod/Not-unrolled-result
- windowsserver.uservoice.com/forums/301869-powershell/suggestions/11472384