Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

JSON attribute extraction

Highlighted

JSON attribute extraction

New Contributor

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

TIA

2 REPLIES 2

Re: JSON attribute extraction

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.

Re: JSON attribute extraction

New Contributor

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.

Don't have an account?
Coming from Hortonworks? Activate your account here