Is it worth to exclude null fields from a JSON server response in a web application to reduce traffic?

后端 未结 3 1458
离开以前
离开以前 2021-02-01 17:36

Lets say that the API is well documented and every possible response field is described.

Should web application\'s server API exclude null fields in a JSON response to l

3条回答
  •  一生所求
    2021-02-01 18:00

    It's definitely dependent from the service and the amount of data it provides; it should be evaluate the ratio about null / not null data and set a threshold over than it worth to exclude that elements. Thanks for sharing, it's an interesting point as for me.

提交回复
热议问题