Support Questions

Find answers, ask questions, and share your expertise

JSON attribute extraction

Is there any processor in Nifi that could extract the JSON attributes dynamically without hardcoding them in a processor like EvaluateJsonpath?



Super Guru

@Pramod Kalvala

As of now there is no built in processor in NiFi that could extract Json attribute dynamically because if we add significant number of attributes dynamically to the flow file, As attributes are hold in memory this will cause performance issues.

We need to add all the json keys/attributes and matching json path as value in EvaluateJsonPath processor and change the destination property to flowfile-attribute to keep them as a flow file attributes.

Please refer to This link for more details regarding dynamic attribute extract processor.

Thanks so much for the quick response Shu. I have been doing some POC's on NIFI lately as a part of my client's requirement and so came up with this question.