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

JSON can be parsed despite stray "}" characters

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.6.0
    • None
    • json
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: