MongoDB comes with “com.mongodb.util.JSON” class to convert JSON data directly to a DBObject. For example, data represent in JSON format : { 'name' : 'mkyong', 'age' : 30 } To convert it to DBObject, you can code like this : DBObject dbObject = (DBObject) JSON.parse("{'name':'mkyong', 'age':30}"); Example See a full example to convert above JSON data to a DBObject, and save it into MongoDB. packag