2

我有以下输入 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
        },
    ]
}

如何删除空对象、空数组或 null 的条目?

4

1 回答 1

1

Jolt 不支持“有条件的”删除。

于 2017-08-31T00:05:31.520 回答