title: Importing json from file into mongodb using mongoimport
body: <p>I have my json_file.json like this:</p>
  
  <pre><code>[
  {
      "project": "project_1",
      "coord1": 2,
      "coord2": 10,
      "status": "yes",
      "priority": 7
  },
  {
      "project": "project_2",
      "coord1": 2,
      "coord2": 10,
      "status": "yes",
      "priority": 7
  },
  {
      "project": "project_3",
      "coord1": 2,
      "coord2": 10,
      "status": "yes",
      "priority": 7
  }
  ]
  </code></pre>
  
  <p>When I run the following command to import this into mongodb:</p>
  
  <pre><code>mongoimport --db my_db --collection my_collection --file json_file.json 
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Failed: error unmarshaling bytes on document #0: JSON decoder out of sync - data changing underfoot?
  </code></pre>
  
  <p>If I add the --jsonArray flag to the command I import like this:</p>
  
  <pre><code>imported 3 documents
  </code></pre>
  
  <p>instead of one document with the json format as shown in the original file. </p>
  
  <p>How can I import json into mongodb with the original format in the file shown above?</p>