json - Apache nifi Evalutejson path -
{"data":["12345","ind","899","tammy","clininc","44444","ind","444","tammm2","clinic1","95","exact"]} i have above json data , want
12345 1 value ind value 899 value , on can use $.data[0] 12345, $.data[1] ind in evalutejson path processor?
ahmed,
you can have array of values in json using evaluatejsonpathprocessor.
in processor have change "destination" attribute in "flowfile-attribute".
after add newer attribute in evaluatejsonpathprocessor access values want below.
data.0:$.data[0] data.1:$.data[1] data.2:$.data[2] then can use extracted values below.,
${data.0} ${data.1} ${data.2} it work me.
feel free upvote/accept answer if work you.
Comments
Post a Comment