# How to get a value from a bundle?

**URL:** <https://community.make.com/t/how-to-get-a-value-from-a-bundle/65433>\
**Category:** Questions\
**Tags:** arrays\
**Created:** [January 3, 2025, 1:01pm UTC](https://community.make.com/t/how-to-get-a-value-from-a-bundle/65433 "2025-01-03T13:01:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![H\_Ravn](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@H\_Ravn](https://community.make.com/u/H_Ravn)\
**Post date:** [January 3, 2025, 1:01pm UTC](https://community.make.com/t/how-to-get-a-value-from-a-bundle/65433/1 "2025-01-03T13:01:53Z")

</div>

I am trying to get the value from a parsed json. But it just returns empty. I tried with and without quotes.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/f/3f0582dbe6df4559c2520fc6cf024199cf53466c.png)

![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/2/f27a325b709a4b685c8ec67abb6ac662cb03f048.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/7/57b6dee089390bac568e458f2bc72a795813567c.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/5/45d42096604d549d10718e40a94c4ca3e8288602.png)

---

<div class="post-metadata">

**Author:** ![Tully\_Lanter](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/tully_lanter/32/59207_2.png) [@Tully\_Lanter](https://community.make.com/u/Tully_Lanter)\
**Post date:** [January 4, 2025, 12:36am UTC](https://community.make.com/t/how-to-get-a-value-from-a-bundle/65433/2 "2025-01-04T00:36:51Z")

</div>

It’s not working because your syntax tries to pass ‘x-wp-total’ as if it were an array index.

Instead, use `get(map())` to filter to the desired array item and extract its value.

Here’s an example from a very similar GET request. Let’s say we want the value for “cache-control”, which is “private, max-age=0”:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/9/e94197e1bb03e715546c3d818de17cd5b4673d17.png)

It’s the third item in the array, so we _could_ extract it like this:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/9/79cdcab571e824abf4de03147aa6e60a280d929e.png)

But we don’t know whether it’s _guaranteed_ to be the third item. Here’s a more robust way:

1. Filter to the array item we want. It’s effectively saying “Give me the `value` whose `name` is `'cache-control'`”. (Of course that would be `'x-wp-total'` in your case).

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/7/17115b8a16d54e7cc96a6ab5362ea5cd139b4460.png)

So far, this produces a one-item array:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/6/16149b4b38316287d475362d7495128d048afd3d.png)

1. Not wrong, but we actually want the string/numeric value from inside that item, so wrap the function above in `get()` with a path of `1`:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/2/422ab17c3a6de00a996686c65e6ec980764150d4.png)

Voilà!

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/e/ae480940bbfb0ace7bd8e52d905a14c789e97006.png)

---

<div class="post-metadata">

**Author:** ![H\_Ravn](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@H\_Ravn](https://community.make.com/u/H_Ravn)\
**Post date:** [January 5, 2025, 3:31pm UTC](https://community.make.com/t/how-to-get-a-value-from-a-bundle/65433/3 "2025-01-05T15:31:42Z")

</div>

Thank you so much for explaining this.

I had tried with the map function, but couldn’t get it to work. Your explanation made it crystal clear for me.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [January 19, 2025, 3:40pm UTC](https://community.make.com/t/how-to-get-a-value-from-a-bundle/65433/4 "2025-01-19T15:40:26Z")

</div>


