dunp by json file data to mongoDB code example
Example: how to export mongodb database to json
sudo mongoexport --db newdb -c restaurants --out newdbexport.json
sudo mongoexport --db newdb -c restaurants --out newdbexport.json