Does it make sense to return this key, if there is no information in the fields in the data structure returned by the backend?

whether the fields in the data structure returned by the backend have no information need to return this key?

for example, there is a list, in the list result. If the list is empty, does the backend not return the list field?

how is it reasonable?


return according to type:
if the document defines an array, return an empty array;
return''if the document defines String, and
return null,
for Object,Number,Boolean. In short, you must return


list is empty return [] or null?.


can be returned or not, depending on how you negotiate with the frontend. The good result of the frontend


will definitely return list: []


. There is no mandatory specification.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3549d-2bf88.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3549d-2bf88.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?