Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

NiFi: JSON Array split

avatar
Expert Contributor

If we have a flowfile with multiple records as JSON Array, can they be split into separate lines each?

1 ACCEPTED SOLUTION

avatar

If you have a JSON array with multiple json objects in it, you could try the SplitJson Processor.

see this => https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.SplitJson/

View solution in original post

6 REPLIES 6

avatar
Not applicable

avatar

If you have a JSON array with multiple json objects in it, you could try the SplitJson Processor.

see this => https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.SplitJson/

avatar
Rising Star

Apache nifi - Split json error when an array has only one record or empty,

avatar
New Member

the above links are no more working


avatar
New Member

Use SpliJson processor, In Configuration, set property of "JsonPath Expression" as $.*

avatar
Rising Star

Apache nifi - Split json error when an array has only one record or empty,