Search code examples
jsonstringparsingapache-nifiprocessor

Nifi Controller Service What is the difference between JsontreeReader and JsonPath reader


I have a simple question. What is the difference between JsontreeReader and JsonPath reader? I am new to NiFi. I am trying to parse a string. I have another open question that no one seems to want to answer. For a example! Nifi JOLT Transform string delimited into different elements and subelements


Solution

  • JsonTreeReader reads the entire JSON as a record, or in the case of a top-level array, each element in the array is read (entirely) as a record. JsonPathReader lets you specify JSONPath expressions in order to get at particular objects/records/fields within the overall flow file.