In my node.js application, i can send the response to a api call, as a json object or as a json array. Which among these is recommended and why? for my convienience sending the json array is easy, should i follow what is easy for me. I want to send the array of objects!
I tried to google around to get the solution, but i couldn't find.
response object can be like
{
list:[{},{}]
}
or
[{},{}]