Export JSON File:
mongoexport --db <database-name> --collection <collection-name> --out output.json
Import JSON File:
mongoimport --db <database-name> --collection <collection-name> --file input.json
mongoimport --db xxxx --collection xxxx --type json xxxx.json --jsonArray
Export JSON File: Import JSON File: |