Well, as I understand it, you're talking about omitting a null attribute. For example, instead of returning:
{
atributo1: "Hello",
atributo2: null,
}
Your colleague recommends:
{
atributo1: "Hello"
}
This is not recommended and I believe data economy is insignificant in most cases.
Your API contract should always return the same fields, omitting one of them leads to contract breach, and may cause a number of API understanding issues. In sending ( request >) you may be more flexible, yes, but looking at API flexibility (to avoid an API versioning, for example) and not data saving.
Finally, according to the principle of robustness (or Postel's Law) alert us :
Postel's Law states that you should be liberal in what you
accept and conservative in what you send.