title: Insert json file into mongodb
body: <p>I am new to MongoDB. After installing MongoDB in Windows I am trying to insert a simple json file using the following command:</p>
  
  <pre><code>C:\&gt;mongodb\bin\mongoimport --db test --collection docs &lt; example2.json
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <pre><code>connected to: 127.0.0.1
  Fri Oct 18 09:05:43.749 exception:BSON representation of supplied JSON is too large: code FailedToParse: FailedToParse: Field name expected: offset:43
  Fri Oct 18 09:05:43.750
  Fri Oct 18 09:05:43.750 exception:BSON representation of supplied JSON is too large: code FailedToParse: FailedToParse: Expecting '{': offset:0
  Fri Oct 18 09:05:43.751
  Fri Oct 18 09:05:43.751 exception:BSON representation of supplied JSON is too large: code FailedToParse: FailedToParse: Field name expected: offset:42
  Fri Oct 18 09:05:43.751
  Fri Oct 18 09:05:43.751 exception:BSON representation of supplied JSON is too large: code FailedToParse: FailedToParse: Expecting '{': offset:0
  Fri Oct 18 09:05:43.751
  Fri Oct 18 09:05:43.752 exception:BSON representation of supplied JSON is too large: code FailedToParse: FailedToParse: Field name expected: offset:44
  Fri Oct 18 09:05:43.752
  Fri Oct 18 09:05:43.752 exception:BSON representation of supplied JSON is too large: code FailedToParse: FailedToParse: Expecting '{': offset:0
  Fri Oct 18 09:05:43.752
  Fri Oct 18 09:05:43.752 check 0 0
  Fri Oct 18 09:05:43.752 imported 0 objects
  Fri Oct 18 09:05:43.752 ERROR: encountered 6 error(s)s
  </code></pre>
  
  <hr>
  
  <h2>example2.json</h2>
  
  <pre><code>{"FirstName": "Bruce", "LastName": "Wayne", 
  "Email": "bwayne@Wayneenterprises.com"}
  {"FirstName": "Lucius", "LastName": "Fox", 
  "Email": "lfox@Wayneenterprises.com"}
  {"FirstName": "Dick", "LastName": "Grayson", 
  "Email": "dgrayson@Wayneenterprises.com"}
  </code></pre>
  
  <hr>
  
  <p>What do I need to do to import new json file into mongodb?</p>