bsoncore.Element String() method doesn't escape the key

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Matthew Chiaravalloti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: