3 ms·
Funny you point this out. Google's JSON Style guidelines[1] say this: >If a property is optional or has an empty or null value, consider dropping the property
by captn3m0 10y ago
Funny you point this out. Google's JSON Style guidelines[1] say this:
>If a property is optional or has an empty or null value, consider dropping the property from the JSON, unless there's a strong semantic reason for its existence.
[1]: https://google.github.io/styleguide/jsoncstyleguide.xml?showone=Empty/Null_Property_Values#Empty/Null_Property_Values https://google.github.io/styleguide/jsoncstyleguide.xml?show...
- perfmode 10y agoThat's a different issue. The commenter is referring to keys that can take on null. This style guide entry suggests a course of action in the event that one of these keys currently has a null value. The style guide isn't prohibiting nullable keys.