This is the content of my input json flowfile:
{"objectIDs":["20607","23679","24365","31444","34130","57462"]}
My requirement is to divide it in such a way that each output flowfile has only 5 elements in it.
so if an objectIDs array has 17 element then I want 4 flowfile with the same json format with the first 3 having 5 elements and last one with the remaining 2.
for my example content provided above, I would want two flow files
First One:
{"objectIDs":["20607","23679","24365","31444","34130","57462"]}
Second one :
{"objectIDs":["57462"]}
How do I do this in Nifi ?