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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -