I want to convert the following json structure to BasicDBOject in java and insert into mongo db.
json
BasicDBOject
My JSON structure is
{ \"
com.mongodb.util.JSON.parse Is deprecated
com.mongodb.util.JSON.parse
Is deprecated
After version 3.6.1 use:
String json = "{"name": "joe"}"; Object o = BasicDBObject.parse(json);
Follow here: deprecated-list