[CSHARP-1577] JSON parser allows missing comma Created: 24/Feb/16  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: Json
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: new-eng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The JsonReader allows JSON documents with missing comma in an array, e.g.

{
    "a" : [
        { "i" : 1}
        { "i" : 2}
    ]
}

The intention was likely to allow for extraneous trailing comma, e.g.

{
    "a" : [
        { "i" : 1},
        { "i" : 2},
    ]
}

which also succeeds, as it does in the shell.


Generated at Wed Feb 07 21:40:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.