I have a document in MongoDB
as
name: name
date_created: date
p_vars: {
01: {
a: a,
b: b,
}
02: {
a: a,
b: b,
}
....
}
represented as DBObject
key
, value
pairs are of type String
DBObject
as JSON
on file?It seems that BasicDBObject's toString() method returns the JSON serialization of the object.