This is a useful feature to trim noise from json values, but unreliable while undocumented. So let's document the behavior:
Deletes all object fields that have null values from the given JSON value, recursively. Null values that are not object fields are untouched. json_strip_nulls additionally removes all insignificant white space.
If that's undesirable, let's remove the functionality - and provide a dedicated function for the task.