我有以下输入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
},
]
}
如何删除空对象,空数组或空的条目?
答案 0 :(得分:1)
Jolt不支持“有条件”删除。