我收到的 JSON 没有以很好的方式分组。对于 HR 系统中已更新的每个“字段”,我都会收到一个包含许多不必要字段的对象。这些对象只有三个我感兴趣的值,“uniqueId”、“field”和“value”。
[
{
"uniqueId": "Env30362",
"field": "DateOfBirth",
"value": "1980-12-01"
Lots of more unnecessary fields...
},
{
"uniqueId": "Env30362",
"field": "StartDate",
"value": "2020-01-01"
Lots of more unnecessary fields...
},
{
"uniqueId": "Env30363",
"field": "DateOfBirth",
"value": "1980-12-01"
Lots of more unnecessary fields...
},
Lots of objects with different uniqueId…
]
我想获取与 uniqueId 关联的所有“字段”和“值”并创建一个新的 JSON,例如 uniqueId 是 Env30362。
{
"uniqueId": "Env30362",
"StartDate”: "2020-01-01",
"DateOfBirth": "1980-12-01"
etc..
}
如何使用逻辑应用实现这一目标?






