Support Questions
Find answers, ask questions, and share your expertise

NiFi - ATTRIBUTE with JSON-content - check array or object (then convert to array)

Expert Contributor

Hi all,

my InvokeHTTP returns the response in an attribute (RESPONSE) because I may not loose the flowfile-content.
Now I have to check whether this attribute contains a JSON-array then everything is fine,
OR a JSON-object and then I have to turn it to an array.

How can I do this "more elegant" than my solution does?


My solution after InvokeHTTP:NiFi_Attribute_array_object.png

Thanks for help!