# How to retrieve a List out of json array in Postman Flows

**URL:** <https://community.postman.com/t/how-to-retrieve-a-list-out-of-json-array-in-postman-flows/56424>\
**Category:** Help Hub\
**Tags:** postman-flows\
**Created:** [January 10, 2024, 2:57pm UTC](https://community.postman.com/t/how-to-retrieve-a-list-out-of-json-array-in-postman-flows/56424 "2024-01-10T14:57:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bygones123](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@bygones123](https://community.postman.com/u/bygones123)\
**Post date:** [January 10, 2024, 2:57pm UTC](https://community.postman.com/t/how-to-retrieve-a-list-out-of-json-array-in-postman-flows/56424/1 "2024-01-10T14:57:36Z")

</div>

Hi.

I am trying to build a workflow with postman flows and I retrieve weather data from an API giving me an array (`properties.periods` is the json path for the array)

 ![Bildschirmfoto 2024-01-10 um 15.52.42](https://us1.discourse-cdn.com/getpostman/original/3X/c/6/c6799d1f111481c6667499d7e8d51fa915afd36a.png)

I would like to show now for each entry in the array certain values (`properties.periods.name` or `properties.periods.temperature`) and this as a List in flow…

I tried to create a list with `select` and set the path, but this sets me `properties.periods.0.name`, which shows me only the first value of the array in the list.

How to stream the response of the API into a list (or even a table)?

The only example I found were with a pre-defined / hard coded list as input for a list output or table output.

Thanks very much

---

<div class="post-metadata">

**Author:** ![flows-daniel](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/flows-daniel/32/25516_2.png) [@flows-daniel](https://community.postman.com/u/flows-daniel)\
**Post date:** [January 10, 2024, 5:03pm UTC](https://community.postman.com/t/how-to-retrieve-a-list-out-of-json-array-in-postman-flows/56424/2 "2024-01-10T17:03:58Z")

</div>

Hi @bygones123

Welcome to the forums!

You can achieve this in the evaluate block instead of a select block:

 ![Screenshot 2024-01-10 at 9.00.33 AM](https://us1.discourse-cdn.com/getpostman/original/3X/b/8/b81e593fbd5bbdf62335155493897751eb014789.png)  
The Evaluate block uses FQL which allows you to do more [advanced](https://learning.postman.com/docs/postman-flows/flows-query-language/getting-basic-values/#return-one-field-of-every-object-in-an-array) things than an select block.

You can stream it to a table with all the values in the list of objects by selecting “Table” on an output block:

 ![Screenshot 2024-01-10 at 9.00.45 AM](https://us1.discourse-cdn.com/getpostman/original/3X/8/4/8453585944554cc810281d91a0399d1247160287.png)

Let me know if this solves what you’re trying to do.

---

<div class="post-metadata">

**Author:** ![bygones123](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@bygones123](https://community.postman.com/u/bygones123)\
**Post date:** [January 11, 2024, 7:12am UTC](https://community.postman.com/t/how-to-retrieve-a-list-out-of-json-array-in-postman-flows/56424/3 "2024-01-11T07:12:33Z")

</div>

Hi @flows-daniel

thank you very much for your quick and comprehensive answer.

It does indeed solve my problem of getting results out. Awesome what this can do.

Is it also possible to filter with FQL the response json object? Like from the n keys in the object, I only want 2-3 specific ones?!

 ![Screenshot 2024-01-11 081115](https://us1.discourse-cdn.com/getpostman/original/3X/4/5/45eadaf2fc15dbd4d5c0f1e343efccafd7bc48d5.png)  
like - i only want “shortForecast”,“name” and “temperature”?

---

<div class="post-metadata">

**Author:** ![flows-daniel](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/flows-daniel/32/25516_2.png) [@flows-daniel](https://community.postman.com/u/flows-daniel)\
**Post date:** [January 11, 2024, 5:16pm UTC](https://community.postman.com/t/how-to-retrieve-a-list-out-of-json-array-in-postman-flows/56424/5 "2024-01-11T17:16:46Z")

</div>

@bygones123

Yes, you can construct a new JSON object with just 2-3 fields and return the list of those new JSON objects.

```auto
properties.periods.{"name": name,"temp": temp, etc.}

```

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [January 14, 2024, 5:17pm UTC](https://community.postman.com/t/how-to-retrieve-a-list-out-of-json-array-in-postman-flows/56424/6 "2024-01-14T17:17:39Z")

</div>

Closed on January 14, 2024, 5:17pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
