Is there any way to dump mongo collection into json format? Either on the shell or using java driver.I am looking for the one with best performance.
From the Mongo documentation:
The mongoexport utility takes a collection and exports to either JSON or CSV. You can specify a filter for the query, or a list of fields to output
Read more here: http://www.mongodb.org/display/DOCS/mongoexport