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.

Nifi SplitJson - how to split json array to individual recods?

Highlighted

Nifi SplitJson - how to split json array to individual recods?

New Contributor

Hi,

SplitJson processor accept as an input Json array of objects.

How to split json array into individual records using SplitJson processor?

Where can I check examples of "JsonPath Expression" for "SplitJson processor"

I checked documentation for "SplitJson"- but it not covers JsonPath Expressions.

Thanks.

2 REPLIES 2

Re: Nifi SplitJson - how to split json array to individual recods?

If it is a flat structure you probably want : $.*
Or, if it is some part of a nested structure: $.firstpart.secondpart.*

Highlighted

Re: Nifi SplitJson - how to split json array to individual recods?

New Contributor

I just used $.* to split the json array into individual records.

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