任何帮助将非常感激。我想要实现的是从 Dynamics 365(云)请求记录到本地系统(由 mulesoft 公开)我决定使用 Azure 逻辑应用程序进行集成并使用 Liquid 进行映射,但是我正在努力用液体使阵列变平,我从内部部署系统中获取了 JSON 有效负载,我需要将其轻松转换以加载到动态 365 中,我得到的是如下内容:
{
"person": {
"firstname": " Fred",
"surname" : "Smith",
"age": 27,
"phoneno":"123456789",
"addresses": [
{
"address": {
"AddressLine1":"1 milky way",
"AddressLine2":"galaxy cresent",
"city": "tempest",
"state": "Idiho",
"postcode": "12345"
}
},
{
"address": {
"AddressLine1":"52 Saturn Drive",
"AddressLine2":"Wharfridge",
"city": "tempest",
"state": "Idiho",
"postcode": "12345"
}
}
]
}
}
我需要的是像这样将数组展平到根节点中:
{
"person": {
"firstname": " Fred",
"surname" : "Smith",
"age": 27,
"phoneno":"123456789",
"addr1_AddressLine1":"1 milky way",
"addr1_AddressLine2":"galaxy cresent",
"addr1_city": "tempest",
"addr1_state": "Idiho",
"addr1_postcode": "12345",
"addr2_AddressLine1":"52 Saturn Drive",
"addr2_AddressLine2":"Wharfridge",
"addr2_city": "tempest",
"addr2_state": "Idiho",
"addr2_postcode": "12345"
}
}
如果有任何其他解决方案\想法,我全神贯注。
提前感谢您的帮助保罗