mongodb/mongo-java-driver — pull request #282 by arpitbbhayani (2014-11-18 05:47:21+00:00)
Title: JAVA-1529: JSON Parser now does not allow unmatched trailing quotes on field names

1. JSONTest.java file to include 2 tests
JSON.parse("{ a\": 1 }");
JSON.parse("{ a: { b\":1 } }");
Both of the above test cases should throw JSONParseException because of unmatched quote.

2. Added a snippet of code in file JSONCallback.java in the objectDone() method to fix the given issue.