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

JSON parser allows missing comma

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Json

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: