0
我想合并一个具有多个对象的JSON文件。以下是我的Oringinal JSON文件。在Apache NIFi中使用ContentMerge追加JSON文件需要帮助
{
"applicant": {
"full-name": "Tyrion Lannister",
"mobile-number" : "8435739739",
"email-id" : "[email protected]"
},
"product": {
"product-category" : "Credit Card",
"product-type" : "Super Value Card - Titanium"
}
}
我将从其他来源得到更多的JSON数据。
{
"flags": {
"duplicate-flag" : "No"
"contact-flag" : "Yes"
}
}
我的任务是在旧的JSON recods中添加新的JSON作为新对象,如下所示。
{
"applicant": {
"full-name": "Tyrion Lannister",
"mobile-number" : "8435739739",
"email-id" : "[email protected]"
},
"product": {
"product-category" : "Credit Card",
"product-type" : "Super Value Card - Titanium"
},
"flags": {
"duplicate-flag" : "No"
"contact-flag" : "Yes"
}
}
有人可以帮助指导,如何在NiFi中实现?