title: mongoimport json file syntax
body: <p>I'm trying to import json document using mongoimport command and have tried all possible ways but it's giving be below error. Plz tell me what m I doing wrong here. I've given full path of json doc. I want to import big document having 800+ records but because it failing so currently my students.json contains simple one line {name : "Archana"} but even this is failing.</p>
  
  <pre><code>C:\data\db&gt;mongo
  2016-02-02T17:48:44.788+0530 I CONTROL  [main] Hotfix KB2731284 or later update is installed, no need to zero-out data
  MongoDB shell version: 3.2.1
  connecting to: test
  &gt; show collections
  names
  students
  &gt; mondoimport -d test -c students students.json
  2016-02-02T17:50:21.001+0530 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:15
  
  &gt; mondoimport -d test -c students &lt; students.json
  2016-02-02T17:50:25.840+0530 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:15
  
  &gt; mondoimport -d test -c students &lt; file students.json
  2016-02-02T17:50:31.233+0530 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:15
  
  &gt; mondoimport -d test -c students &lt; f students.json
  2016-02-02T17:50:35.417+0530 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:15
  
  &gt; mondoimport -d test -c students &lt; f C:\data\db\students.json
  2016-02-02T17:50:51.658+0530 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:15
  
  &gt; mondoimport -d test -c students &lt; f "C:\data\db\students.json"
  2016-02-02T17:50:56.897+0530 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:15
  
  &gt; mondoimport -d test -c students C:\data\db\students.json
  2016-02-02T17:51:06.849+0530 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:15
  
  &gt; mondoimport -db test -c students C:\data\db\students.json
  2016-02-02T17:54:33.545+0530 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:16
  
  &gt; mondoimport --db test --collection students C:\data\db\students.json
  2016-02-02T17:56:24.253+0530 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:14
  
  &gt; mondoimport --db test --collection students --file C:\data\db\students.json
  2016-02-02T17:56:33.589+0530 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:14
  
  &gt; mondoimport --db test --collection students --file C:\data\db\students.json --jsonArray
  2016-02-02T17:58:21.131+0530 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:14
  
  &gt; mondoimport --db test --collection students C:\data\db\students.json --jsonArray
  2016-02-02T17:58:32.650+0530 E QUERY    [thread1] SyntaxError: missing ; before statement @(shell):1:14
  </code></pre>