String json ={"underlying":{"Not-included":"238","Apache-2.0":"1"}}
DBObject dbObject = (DBObject) JSON.parse(json);
java.lang.IllegalArgumentException: Invalid BSON field name Apache-2.0
How to replace dot easily using above parsing?
String json ={"underlying":{"Not-included":"238","Apache-2.0":"1"}}
DBObject dbObject = (DBObject) JSON.parse(json);
java.lang.IllegalArgumentException: Invalid BSON field name Apache-2.0
How to replace dot easily using above parsing?