ConvertFrom-Json allows trailing commas in input JSON #11117
Labels
Issue-Question
ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
Resolution-Duplicate
The issue is a duplicate.
Convertfrom-json and Test-Json both accept invalid json and neither provide ability to force strict parsing.
It looks like there are two related issues on NJsonSchame and NewtonSoft.Json the latter saying its expected behaviour.
RicoSuter/NJsonSchema#942
JamesNK/Newtonsoft.Json#818
Steps to reproduce
Expected behavior
An error should occur as in Powershell 5.x
Actual behavior
Parses correctly and returns object matching the json
Environment data
The text was updated successfully, but these errors were encountered: