I am consuming messages from IBM MQ using Nifi. Each message is 1000 chars long. Based on the index I have to split the flowfile and then add the splits to JSON object.
e.g. 2525252525M123456789JohnDoe
to : {"Phone":"2525252525", "Sex":M, "Ssn":"123456789", "Name":"JohnDoe" }
Is there a way to do this using any of the Nifi processors. The other approach is to use python or some other script to do that and use Execute Processors. But, if there is some other way please let me know.