treat JSON array correctly

As of MongoDB spec, an array of JSON documents will insert each single document contained in array (bulk insert).