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:
I want to get each event in a seperate flowfile. In the description of the processor it states:
A JsonPath expression that indicates the array element to split into JSON/scalar fragments.
So because it's the root array I want to split I try using $ or @ but this won't work. Equally * or [*] or other things that I think are wrong like $.[*] 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.
Thanks in advance for any suggestions or help!