title: marklogic mlcp custom transform split aggregate document to multiple files
body: <p>I have a JSON "aggregate" file that I want to split up and ingest as multiple documents into MarkLogic using mlcp.</p>
  
  <p>I want to <a href="http://docs.marklogic.com/guide/mlcp/import#id_55217">transform the content during ingestion using javascript</a>.</p>
  
  <p>My JSON file looks something like this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    "type": "FeatureCollection",
    "features": [
      {blobA}, {blobB}, {blobC} ......
      ]
   }</code></pre>
  </div>
  </div>
  </p>
  
  <p>...and I want to run this file through MLCP so that each document contains an item in the array. </p>
  
  <p>i.e. One document will contain {blobA}, another will contain {blobB}, and another will contain {blobC}....and so forth.</p>
  
  <p>How do I write my custom .sjs transform module?</p>