[CSHARP-350] JsonReader doesn't support unquoted element names that start with an underscore Created: 03/Nov/11  Updated: 02/Apr/15  Resolved: 03/Nov/11

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.3
Fix Version/s: 1.3.1

Type: Bug Priority: Minor - P4
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: 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.



 Comments   
Comment by Robert Stam [ 03/Nov/11 ]

Added support for underscores in unquoted element names. Not just leading, but embedded and trailing underscores as well.

Generated at Wed Feb 07 21:36:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.