JSON empty value remover
Processed in your browser · nothing is uploaded
Strips null, empty strings, empty arrays and empty objects recursively — so a branch left empty because its contents were removed is removed too.
How to use the json empty value remover
Recursion is the part naive implementations skip: removing a null inside an object can leave that object empty, and leaving the husk behind defeats the purpose. Working bottom-up handles it. Be careful about what counts as empty, though — this treats null and the empty string as removable and keeps `false` and `0`, because those are meaningful values and dropping them is a real bug. If your API distinguishes "absent" from "explicitly null", this changes the meaning of the document rather than tidying it.
Questions
No. Those are meaningful values. Only null, empty strings and empty containers go.