1
空對象或數組我有以下輸入JSON:中刪除條目,如果在顛簸
{
"Accounts": [
{
"Reference": {
"Key": "1111",
"System": "Oracle"
},
"ContactMethods": {
"Phone": [{...}, {...}, ...],
"Email": [{...}, {...}, ...],
"Address": [], // remove this
"Website": [] // remove this
},
"Registration" : {...}
},
{
"Reference": {
"Key": "2222",
"System": "DB2"
},
"ContactMethods": {
"Phone": [{...}, {...}, ...],
"Email": [], // remove this
"Address": [], // remove this
"Website": [{...}, {...}, ...]
},
"Registration" : {} // or null, remove this
},
]
}
如何刪除要麼是空的對象,空數組或空條目?