title: Mongodb import json with _id
body: <p>I am trying to import the following data in a mongodb collection </p>
  
  <pre><code>[
  {"_id":NumberLong(1), "name": "Afghanistan", "code": "AF"},
  {"_id":NumberLong(2), "name": "Aland Islands", "code": "AX"},
  {"_id":NumberLong(3), "name": "Albania", "code": "AL"},
  {"_id":NumberLong(4), "name": "Algeria", "code": "DZ"},
  {"_id":NumberLong(5), "name": "American Samoa", "code": "AS"},
  {"_id":NumberLong(6), "name": "AndorrA", "code": "AD"}
  ]
  </code></pre>
  
  <p>I am getting errors - </p>
  
  <pre><code>D:\mongodb\bin&gt;mongoimport --db mopi --collection somecountry --type json --file
   somecountry.json --jsonArray
  connected to: 127.0.0.1
  Fri Nov 07 14:20:45.149 exception:BSON representation of supplied JSON array is
  too large: code FailedToParse: FailedToParse: Bad characters in value: offset:7
  Fri Nov 07 14:20:45.151 [
  {"_id":NumberLong(1), "name": "Afghanistan", "code": "AF"},
  {"_id":NumberLong(2), "name": "Aland Islands", "code": "AX"},
  {"_id":NumberLong(3), "name": "Albania", "code": "AL"},
  {"_id":NumberLong(4), "name": "Algeria", "code": "DZ"},
  {"_id":NumberLong(5), "name": "American Samoa", "code": "AS"},
  {"_id":NumberLong(6), "name": "AndorrA", "code": "AD"}
  ]
  
  Fri Nov 07 14:20:45.152 check 0 0
  Fri Nov 07 14:20:45.153 imported 0 objects
  Fri Nov 07 14:20:45.153 ERROR: encountered 1 error(s)
  </code></pre>