回答:
プロパティがオプションであるか、空またはnull値を持っている場合は、その存在の強い意味上の理由がない限り、JSONからプロパティを削除することを検討してください。
{
  "volume": 10,
  // Even though the "balance" property's value is zero, it should be left in,
  // since "0" signifies "even balance" (the value could be "-1" for left
  // balance and "+1" for right balance.
  "balance": 0,
  // The "currentlyPlaying" property can be left out since it is null.
  // "currentlyPlaying": null
}
さらに読書
Googleのスタイルガイド-空またはnullのプロパティ値
万一のヌル値はREST APIからJSONレスポンスに含まれますか?
currentlyPlaying、いくつかの応答にあり、他の応答にはない場合でも、キーがnullかどうかをチェックするのではなく、クライアントにキーが存在するかどうかをチェックさせることが望ましいですか?