title: import json file to mongodb without '[' causes error
body: <pre><code>mongoimport --db my_db --collection mycol --file "D:\workspace\intelligent_TDR\charm\employees.json" --jsonArray
  </code></pre>
  
  <p>Importing the employees.json file using the above command gives me the error</p>
  
  <pre><code>Failed: error reading separator after document #1: bad JSON array format - found no opening bracket '[' in input source
  </code></pre>
  
  <p>The content of json file is</p>
  
  <pre><code>{"employees":[
    { "firstName":"John", "lastName":"Doe" },
    { "firstName":"Anna", "lastName":"Smith" },
    { "firstName":"Peter", "lastName":"Jones" }
  ]}
  </code></pre>
  
  <p>If I place the content within '[' and ']' the import works. </p>
  
  <p>The below json is imported without error</p>
  
  <pre><code>[{"employees":[
    { "firstName":"John", "lastName":"Doe" },
    { "firstName":"Anna", "lastName":"Smith" },
    { "firstName":"Peter", "lastName":"Jones" }
  ]}]
  </code></pre>