Download a sample dataset or json from Github restaurants-dataset.json
mongoimport --db test --collection restaurants --drop --file "C:\Users\vp\Downloads\restaurants-dataset.json"
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
PS C:\Users\vp> mongoimport --db test --collection restaurants --drop --file "C:\Users\vp\Downloads\restaurants-dataset.json"
2017-11-23T17:54:58.225+0530 connected to: localhost
2017-11-23T17:54:58.233+0530 dropping: test.restaurants
2017-11-23T17:55:01.203+0530 [##################......] test.restaurants 8.96MB/11.3MB (79.2%)
2017-11-23T17:55:02.257+0530 [########################] test.restaurants 11.3MB/11.3MB (100.0%)
2017-11-23T17:55:02.258+0530 imported 25359 documents
PS C:\Users\vp>