title: How to split json into multiple files per document
body: <p>I have a large json file that contains thousands of documents:</p>
  
  <pre><code>[
      {
          "_id": "document1",
          "fields": [ ... ]
      },
      {
          "_id": "document2",
          "fields": [ ... ]
      },
      ...
  ]
  </code></pre>
  
  <p>I'd like to split this json file so that each json file contains a single document, and name them accordingly:</p>
  
  <pre><code>document1.json, document2.json, ...
  </code></pre>
  
  <p>For example, <code>document1.json</code> will contain:</p>
  
  <pre><code>{
      "_id": "document1",
      "fields": [ ... ]
  }
  </code></pre>
  
  <p>I have no knowledge of jq API, and I'm struggling to find an answer (I've find a <a href="https://stackoverflow.com/questions/28744361/split-a-json-file-into-separate-files">similar question</a>, but slightly different :( )</p>