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

JsonReader doesn't support unquoted element names that start with an underscore

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.3.1
    • 1.3
    • None
    • None
    • Fully Compatible

    Description

      To reproduce:

      var json = "

      { _x : 2 }

      ";
      var document = BsonSerializer.Deserialize<BsonDocument>(json);

      When the element name is quoted there is no problem.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: