Hi,
I have json flowfile, [{"prediction":"Test2"},{"prediction":"Test2"}].
I am want extract the 1st part of the array ie prediction":"Test2 my destination is flowfile-attribute using EvaluateJsonPath .
I have added a custom attribute mlresult --->$.prediction[0], to extract the "Test2" into mlresult, but I am getting empty string for the mlresults for the flow file attribute section.
flow file : [{"prediction":"Test2"},{"prediction":"Test2"}]
EvaluateJsonPath configuration:
How to get the value(only one) Test2 to mlresult?
Thanks
--Murali