convert basicdbobject to jsonobject code example
Example: how to convert a jsonobject to a dbobject
DBObject object = (DBObject) JSON.parse(obj.toString());
collection.insert(object)
DBObject object = (DBObject) JSON.parse(obj.toString());
collection.insert(object)