[JAVA-2122] JSON parser allows missing comma Created: 24/Feb/16  Updated: 13/Sep/16  Resolved: 13/Sep/16

Status: Closed
Project: Java Driver
Component/s: JSON
Affects Version/s: 3.0.0
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
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.



 Comments   
Comment by Jeffrey Yemin [ 13/Sep/16 ]

The JSON class is effectively deprecated, so we won't be fixing this.

Generated at Thu Feb 08 08:56:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.