Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1942

JSON can be parsed despite stray "}" characters

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.6.0
    • Affects Version/s: None
    • Component/s: json
    • None

      Invalid JSON like this is accepted by our parser:

      {"aggregate": "collection", "pipeline": [{"a": 1}]},"collation": {"locale": "en"}
      

      There's a stray "}" after the pipeline, and the closing "}" is missing, but it's parsed as if valid.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: