Return response as an object instead of an array