[GODRIVER-1161] bsoncore.Element String() method doesn't escape the key Created: 24/Jun/19 Updated: 10/Oct/22 |
|
| Status: | Backlog |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Matthew Chiaravalloti | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | jeff+ | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The bsoncore.Element.String method does not escape the special characters in the keys, so it does not guarantee outputting valid extended json. The specific case I encountered was a key with double quotes in it, though more special characters should be escaped according to the json spec. |