I am writing a model factory, for which I use JSON to load up a MongoDB DBObject like this:
import com.mongodb.util.JSON; DBObject dbObject = (DBObject) JSON.parse("{'name':'jack', 'age':30}");