我有一个对象数组,是通过清除零数量的对象而从干净的对象中获取的
"items": [
{
"amount": 1005.05,
"item": "AB"
},
{
"amount": 0,
"item": "BC"
},
{
"amount": 10,
"item": "CD"
},
{
"amount": 0,
"item": "EF"
}
]
所以在清洁结束时,我将得到的是:
"items": [
{
"amount": 1005.05,
"item": "AB"
},
{
"amount": 10,
"item": "CD"
}
]