Say in my application, some users give us their last name, and others do not. In a REST API response, which body is preferred:
With a “null” value:
{"firstName": "Bob",
"lastName": null}
Or just a missing key:
{"firstName": "Bob"}
Say in my application, some users give us their last name, and others do not. In a REST API response, which body is preferred:
With a “null” value:
{"firstName": "Bob",
"lastName": null}
Or just a missing key:
{"firstName": "Bob"}