Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2122

JSON parser allows missing comma

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.0.0
    • Component/s: JSON
    • Labels:
      None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: