Recursively remove fields with null values in object
This is particularly useful in serialization, especially when handling response
coming from servers where null are returned for missing fields. We would like to
treat them as undefined instead, so we want to strip all the null values from the
plain JSON object.
Recursively remove fields with null values in object
This is particularly useful in serialization, especially when handling response coming from servers where
nullare returned for missing fields. We would like to treat them asundefinedinstead, so we want to strip all thenullvalues from the plain JSON object.