- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Nifi SplitJson - how to split json array to individual recods?
- Labels:
-
Apache NiFi
Created ‎08-03-2017 05:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎08-03-2017 04:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If it is a flat structure you probably want : $.*
Or, if it is some part of a nested structure: $.firstpart.secondpart.*
Created ‎04-26-2023 07:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@dchaffey Hi After Array split I get 12 flowfiles, Now I want those flowfiles to use one by one, means when 1 flowfile will execute its complete process then only next flowfile should be sent ahead. I tried using wait and notify but didnt worked properly. Can you suggest something
Created ‎04-18-2018 05:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just used $.* to split the json array into individual records.
Created ‎04-26-2023 05:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use
[*]
Created on ‎04-27-2023 04:55 AM - edited ‎04-27-2023 04:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm receiving an array of the Json objects like [{"key1":"value1", "key2":"value2"},{...},{...}], all what I'm doing is using SplitJson with the following expression.
If you have another structure of a Json your expression could be different, or you should use any transform(f.e. JoltTransform) at first.
