We have a resource whose structure is like this:
{
"id":100,
"title":"SOME_TITLE",
"logo":[
{
"uri":"SOME_URL",
"mimeType":"jpg",
"type":null,
"priority":0,
"size":null
}
]
}
Some of the resources do not have "logo" and there are two ways to represent this situation
1st.
{
"id":100,
"title":"SOME_TITLE",
"logo": null
}
2nd.
{
"id":100,
"title":"SOME_TITLE",
}
In any case, our clients are handling the case, so the question focuses more on the design. Which approach is better? nulling the missing field or removing it completely from the response?