I need to rename indentifier in this:
{ \"general\" :
{ \"files\" :
{ \"file\" :
[
{ \"version\" :
{ \"sof
I had a similar problem. In my situation I found the following was much easier:
mongoexport --db mydb --collection modules --out modules.json
I did a find and replace on the json using my favoured text editing utility.
I reimported the edited file, dropping the old collection along the way:
mongoimport --db mydb --collection modules --drop --file modules.json