【发布时间】:2019-11-23 22:31:19
【问题描述】:
我低于 JSON 请求
[{
"Weight": "787.00",
"Volume": "65.00",
"TrackID": "128260490",
"item": [
{
"Description": "basketball",
"totalquantity": 1
},
{
"Description": "football",
"totalquantity": 4
}
]
},
{
"Weight": "68.200",
"Volume": "44.298",
"TrackID": "890433466",
"item": [
{
"Description": "hockeystick",
"totalquantity": 8
}
]
}
]
我正在以以下方式查看输出(仅限 json 格式):
{
Purchasedetails: [
{
"TrackID": 128260490,
"Description": "basketball",
"totalquantity": 1
},
{
"TrackID": 128260490,
"Description": "football",
"totalquantity": 4
},
{
"TrackID": 890433466,
"Description": "hockeystick",
"totalquantity": 8
}
]
}
在这里,如果您看到篮球和足球(描述)中的跟踪 ID 非常相似,因为它们具有共同的 TrackID,我该如何处理这个 TrackID 逻辑?
【问题讨论】:
标签: arrays mapping dataweave mulesoft mule4