[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.


Generated at Thu Feb 08 08:35:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.