Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1577

JSON parser allows missing comma

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

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: