Question
Merging JSON flowfiles from 2 processors into one flowfile
[
{
"code": "ABC123",
"product": "My Product",
"prices": [
{
"valid_from": "20180913 09:00:08",
"name": "pricelist1",
"abc": "14.74"
},
{
"valid_from": "20180913 09:00:08",
"name": "pricelist2",
"abc": "10.70"
}
]
}
]
Process 2:
[
{
"code": "ABC123",
"product": "My Product",
"prices": [
{
"valid_from": "20180913 09:00:08",
"name": "pricelist1",
"xyz": "53.74"
},
{
"valid_from": "20180913 09:00:08",
"name": "pricelist2",
"xyz": "21.70"
}
]
}
]
Desired Outcome:
[
{
"code": "ABC123",
"product": "My Product",
"prices": [
{
"valid_from": "20180913 09:00:08",
"name": "pricelist1",
"abc": "14.74",
"xyz": "53.74"
},
{
"valid_from": "20180913 09:00:08",
"name": "pricelist2",
"abc": "10.70",
"xyz": "21.70"
}
]
}
]

