My application uses JSON objects a lot (org.json.JSONArray and friends). What\'s the most efficient way to store these into Mongo DBObjects so they can be queried? BasicDBOb
i don't know about java mongo driver, but in c# mongo driver has BsonSerializer class. You can use it like following code:
var q = BsonSerializer.Deserialize("{ jsonValueName:jsonValue }");
plz check mongo-java-driver, i thank it should contain the same facilities
also look at bson4jackson