Return error instead of asserting for malformed JSON

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.9.0
    • Affects Version/s: None
    • Component/s: libbson
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In some cases of malformed JSON we're asserting instead of returning a useful error message.

      Some repros:

      [],[{'abc': 1}]
      {},[{'abc': 1}]
      

      Passing these via json-to-bson will trigger asserts.

              Assignee:
              Kevin Albertson
              Reporter:
              Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: