plugin elementapi - Return JSON array without extra square brackets

I'm having difficulties to remove an additional set of square brackets or avoid including them within array.My JavaScript code currently accesses array's object at 0 index and therefore I'd have to loop in one level deeper array. Which I'd like to avoid if possible.This is my endpoint:'pricelist/<entryId:\d+>.json' => function($entryId) { return [ 'elementType' => ElementType::Entry, 'criteria' => [ 'section' => "products", 'descendantOf' => $entryId, ], 'transformer' =&g...Read more