I'm asking about the best practice to return data array in a JSON response...
Like this :
{ myObjectContainsArray: [ {object1}, {object2}, {object3}] }
// and get it like this => myObjectContainsArray[0].object1property
Or :
[{object1}, {object2}, {object3}]
// and get it like this => [0].object1property
What is the best way ?
Thanks