Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1161

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

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

      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 Unassigned
            Reporter:
            matthew.chiaravalloti@mongodb.com Matthew Chiaravalloti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: