我是 android 的新手。我如何ArrayList
在 android 中过滤。我有以下内容JSON response
,我想删除那些null objects
,请参考我的示例:
{
name: "7-11 上海店",
name_en: "7-11 Shanghai",
address: "浦东新区陆家嘴环路1396号",
address_en: "12344",
logo: "http://google.com/images/7eleven.gif",
items: [{
description: "(null)",
quantity: 0,
price: 0
},
{
description: "Item 1",
quantity: 1,
price: 19.9
}
],
amount_due: 19.9
}
在此示例中,我要删除:
{
description: "(null)",
quantity: 0,
price: 0
}
提前致谢!