I would use null
to show that there is no value for that particular key. For example, use null
to represent that "number of devices in your household connects to internet" is unknown.
On the other hand, use {}
if that particular key is not applicable. For example, you should not show a count, even if null
, to the question "number of cars that has active internet connection" is asked to someone who does not own any cars.
I would avoid defaulting any value unless that default makes sense. While you may decide to use null
to represent no value, certainly never use "null"
to do so.