Question
SplitJson for nested json content
Hello, unfortunately I couldn't find an answer for this question, although it seems to be easy enough. I have a json file of this format, which I want to generate separate flowfiles from singularizing the values in NestedKey2:
My input:
{
"Key1" : [ {
"NestedKey1" : "Value1",
"NestedKey2" : [ "Value2", "Value3", "Value4", "Value5"],
"NestedKey3" : "Value6"
} ]
}
Desired output:
Flowfile 1:
{
"Key1" : [ {
"NestedKey1" : "Value1",
"NestedKey2" : "Value2",
"NestedKey3" : "Value6"
} ]
}
Flowfile 2:
{
"Key1" : [ {
"NestedKey1" : "Value1",
"NestedKey2" : "Value3",
"NestedKey3" : "Value6"
} ]
} ...
and so on. Thanks for any suggestions.

