title: Insert JSON Array into mongodb
body: <p>I'm trying to insert a string that represents a JSON array into a mongodb collection with this,</p>
  
  <pre><code>String str = "[{\"id\":1,\"data\":\"data1\"},{\"id\":2,\"data\":\"data2\"},{\"id\":3,\"data\":\"data3\"}]";
  DBObject dbObject = (DBObject) JSON.parse(str);
  collection.insert(dbObject);
  </code></pre>
  
  <p>But I get the exception,</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalArgumentException: BasicBSONList can only work with numeric keys, not: [_id]
  </code></pre>
  
  <p>Can anyone show me the correct way to do this?</p>