title: import a large amount of json files to couchdb
body: <p>i 'm new to couchdb and managing a directory with json files (>300) that need to be imported on an existing database (this will be happenning e.g. every week). My question has basically 2 parts that are probably relative:</p>
  
  <ul>
  <li><p>Could someone recommend a high-level solution to my workflow? ( e.g. read the dir contents, use couchdb bulk api to post) I would favor involving php. I 've read several posts but i am not sure that they fit easily to my case.</p></li>
  <li><p>My Json files start and end with brackets [] and when i use </p>
  
  <pre><code>curl -X PUT -d @name.json http://user:pass@127.0.0.1:5984/db/doc
  </code></pre>
  
  <p>i get a fail due to "Document must be a JSON object"</p>
  
  <p>Is there a way to remove them?</p></li>
  </ul>
  
  <p>Thanks</p>