I would like to transform a BSON dump of MongoDB to JSON.
To do that, I\'m using the bsondump tool provided with Mongo, but I get an output like :
{ \"_i
To create a JSON file directly from the database, use mongoexport
mongoexport --db myDatabase --collection myCollection --jsonArray --out myJsonFile.json