The newDocument class has convenience methods to parse and produce JSON. Would be nice to have similar methods in BasicDBObject as well.