title: Apache NiFi Split JSON root array
body: <p>I want to use Apache NiFi's built-in processor 'SplitJson' to split a JSON array. I've done it before and it works perfectly but now I can't seem to find the right json path expression to split my json. The JSON I get is simply from github:</p>
  
  <p><a href="https://api.github.com/events" rel="nofollow">https://api.github.com/events</a></p>
  
  <p>I want to get each event in a seperate flowfile. In the description of the processor it states: </p>
  
  <blockquote>
    <p>A JsonPath expression that indicates the array element to split into JSON/scalar fragments.</p>
  </blockquote>
  
  <p>So because it's the root array I want to split I try using $ or @ but this won't work. Equally <code>*</code> or <code>[*]</code> or other things that I think are wrong like <code>$.[*]</code> etc. don't work. In some cases it just doesn't split anything, other times it gives an error simply saying it can't find the array. </p>
  
  <p>Thanks in advance for any suggestions or help!</p>