# Array Responses

**URL:** <https://connect.superhuman.com/t/array-responses/30959>\
**Category:** Making Packs\
**Created:** [May 24, 2022, 5:21pm UTC](https://connect.superhuman.com/t/array-responses/30959 "2022-05-24T17:21:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Baucom](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/thomas_baucom/32/26289_2.png) [@Thomas\_Baucom](https://connect.superhuman.com/u/Thomas_Baucom)\
**Post date:** [May 24, 2022, 5:21pm UTC](https://connect.superhuman.com/t/array-responses/30959/1 "2022-05-24T17:21:34Z")

</div>

Hello all! Thanks for all of the guidance and help on my previous inquiries. I have gone from suboptimal JavaScript abilities to building packs that work. Thank you, Coda! I am however struggling mightily handling an Array of Objects as a response from a GET request. Let’s say we receive the below as a response -

```auto
{
    "things": [
        {
            "thingID": "11007",
            "thingname": "thing1",
        },
        {
            "thingID": "17216",
            "thingname": "thing2",
        },
        {
            "thingID": "16158",
            "thingname": "thing3",
        },
    ]
}

```

Is there a code example that shows how to handle something like this? I have gotten pretty decent when my formula returns one object but this is a new frontier! I am guessing my best option is to use resultType: coda.ValueType.Array as the formula result and then define those items by my object schema? I would love to “drill down” into array but I must be missing something obvious.

---

<div class="post-metadata">

**Author:** ![Eric\_Koleda](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/eric_koleda/32/50286_2.png) [@Eric\_Koleda](https://connect.superhuman.com/u/Eric_Koleda)\
**Post date:** [May 24, 2022, 6:15pm UTC](https://connect.superhuman.com/t/array-responses/30959/2 "2022-05-24T18:15:38Z")

</div>

Hi @Thomas_Baucom - Glad to hear that Pack building is starting to click! If you wanted to return all of that data, they yes, you’d be looking at returning an `Array` of object schemas. This is briefly discussed in this section of the documentation:

> **[Return data with meaningful types - Coda Pack SDK](https://coda.io/packs/build/latest/guides/basics/data-types/#arrays)**
>
> Documentation for the SDK to build Coda Packs.

Once you have lists of complex objects you should also consider if a sync table would make sense. You could include both a formula and a sync table for the same information, as each has it’s pros and cons. For example, the [Google Calendar Pack](https://coda.io/packs/google-calendar-1003) includes both an “Events” sync table and an “Events” formula.

---

<div class="post-metadata">

**Author:** ![Thomas\_Baucom](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/thomas_baucom/32/26289_2.png) [@Thomas\_Baucom](https://connect.superhuman.com/u/Thomas_Baucom)\
**Post date:** [May 24, 2022, 6:29pm UTC](https://connect.superhuman.com/t/array-responses/30959/3 "2022-05-24T18:29:29Z")

</div>

@Eric_Koleda Thank you (per always) for pointing me in the right direction!
