Events.json design

Events.json design

in API Development

Posted by: Hades.9325

Hades.9325

Hi

I was wondering why the events.json API uses a variable “events” to store the array of all the events returned. Why not have just a top level array like event_names.json API? Wouldn’t it be easier to parse an array of Event objects rather than an object containing Event objects?