The following steps tells you how to import from the JSON file in windows:
First, you have to download the JSON file and store it inside a folder(d:\sample)
After downloading, just open the command prompt, start the mongodb server by going into the bin directory and type:
mongod
Now open another command prompt and move to the bin directory again and write the following code:
C:\mongodb\bin>mongoimport --db test --collection zips --file d:\sample\zips.json
The import should start working instantly and at the end, it will display something like this:
Thu Dec 19 17:11:22 imported 29470 objects
Are you interested in Full Stack Development? Enroll in this Full Stack Developer Certification to learn from experts.