-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.9.0
-
Component/s: JSON
-
Labels:None
This:
String str = "{x : 1}, y : 1"; DBObject parsedJSON = (DBObject) JSON.parse(str);
produces a DBObject equivalent to:
new BasicDBObject(x, 1)
It should throw an exception instead