MongoDB extracting values from BasicDBObject (Java)
问题 I am having trouble retrieving values from queried documents in MongoDB. For example, the doc structure is like: { "_id": { "$oid": "50f93b74f9eccc540b302462" }, "response": { "result": { "code": "1000", "msg": "Command completed successfully" }, "resData": { "domain:infData": { "domain:name": "ritesh.com", "domain:crDate": "2007-06-15T12:02:36.0000Z", "domain:exDate": "2013-06-15T12:02:36.0000Z" } } } } And the query code is: DBCollection collection = db.getCollection("domains");