Support Questions

Find answers, ask questions, and share your expertise

how to transform a jsonarray into a string list in Nifi

Hello,

i have a queryCassandra which generate a json like this one(the number of terms isn't fix):

{"results":[{"term":"term1"},{"term":"term2"}..]} 

Now, i want to get from this all the terms values separated by some separator in string format;

ex : term1,term2,term3

So i can pass this list as a string parameter for a java main program which i've alreat set.

(i only need the transformation, not the java program execution) Thank you !

1 REPLY 1

Hello, @brian adi

There is a duplicate question, and I posted an answer there. Thanks.

https://community.hortonworks.com/questions/104211/how-to-transform-a-json-array-into-a-string-list-...