> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zapier.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Error: Got a non-object result in the array, expected only objects

> When using a REST Hook trigger, the data returned by the perform must be an array.

## Error shown

If an API returns a non-object result within the array, or an array of arrays, the following error will show.

`Got a non-object result in the array, expected only objects ( )`

The non-object result will be wrapped in the parentheses for the error message.

## Solution

If the data included in the webhook needs to be transformed, or includes multiple objects, you can add custom code to parse the response data in `bundle.cleanedRequest` within the Perform into an array of objects.

If your webhook already provides an array, remove the wrapping array that Zapier includes by default and simply return `bundle.cleanedRequest`.

<Frame>
  {" "}

  <img src="https://mintcdn.com/zapier-82f0e938/1jtyk4mqAs_J-p30/images/26459a11e1630fe8318c341bf598ab5a.webp?fit=max&auto=format&n=1jtyk4mqAs_J-p30&q=85&s=5b01893a07e0712d9a9c6b0bd88b09a5" width="1128" height="257" data-path="images/26459a11e1630fe8318c341bf598ab5a.webp" />

  {" "}
</Frame>

***

*Need help? [Tell us about your problem](https://developer.zapier.com/contact) and we'll connect you with the right resource or contact support.*
