# FilterJSON data

**URL:** <https://forum.bubble.io/t/filterjson-data/143599>\
**Category:** APIs\
**Created:** [March 28, 2021, 10:28pm UTC](https://forum.bubble.io/t/filterjson-data/143599 "2021-03-28T22:28:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukejamison0](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@lukejamison0](https://forum.bubble.io/u/lukejamison0)\
**Post date:** [March 28, 2021, 10:28pm UTC](https://forum.bubble.io/t/filterjson-data/143599/1 "2021-03-28T22:28:13Z")

</div>

Hello, I need to filter some JSON data that I returned from an API but the data that I’m trying to filter is inside of an array it looks like this  
`"labels": [{ "id": 5580553, "name": "Checked In", "color": "green" }]`  
and I want to filter it based on `"name": "Checked In"` using the `contains` method. All of this is inside of any repeating group and I want to only show data that contains the label `"Checked In"`. Would love any suggestion 😀

---

<div class="post-metadata">

**Author:** ![tanejachirag19](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tanejachirag19](https://forum.bubble.io/u/tanejachirag19)\
**Post date:** [March 29, 2021, 1:18pm UTC](https://forum.bubble.io/t/filterjson-data/143599/2 "2021-03-29T13:18:49Z")

</div>

After you have set-up the call in RG, in Data source, add filtered by.  
This allows you to filter things on frontend (client side).

---

<div class="post-metadata">

**Author:** ![lukejamison0](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@lukejamison0](https://forum.bubble.io/u/lukejamison0)\
**Post date:** [March 30, 2021, 3:18am UTC](https://forum.bubble.io/t/filterjson-data/143599/3 "2021-03-30T03:18:11Z")

</div>

@tanejachirag19 thanks for that information but when I go to choose the if the `labels` contains `Checked in` I’m not able to type anything or provide a custom string.

 ![CleanShot 2021-03-29 at 20.14.38@2x](https://us1.discourse-cdn.com/bubble/original/3X/c/8/c83f2d5098a63d24baad4145af077d75ac57855c.png)

---

<div class="post-metadata">

**Author:** ![Neo](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/neo/32/90111_2.png) [@Neo](https://forum.bubble.io/u/Neo)\
**Post date:** [March 30, 2021, 7:32am UTC](https://forum.bubble.io/t/filterjson-data/143599/4 "2021-03-30T07:32:29Z")

</div>

Hi @lukejamison0,

I had the same problem, it seems that bubble only identify JSON parameter on the 1st degree. Objects in array are not supported (until now).

You can use Integromat to flatten your JSON message like this :

 ![Capture d’écran 2021-03-30 à 09.24.28](https://us1.discourse-cdn.com/bubble/original/3X/d/5/d5eae8d967301542494a6d5b91d0f44f180a4fff.png)

1 - Create a new scenario in integromat  
2 - Add a custom webhook where you send first the data you want to flatten  
3 - Add a http request, you will find parameters that you can choose/organize and send to an other endpoint

In my case, I received a Slack POST request on Integromat, organized the JSON and sended it to my bubble endpoint in the form I wanted. It worked.

Hope that will help you 😉

---

<div class="post-metadata">

**Author:** ![doug.burden](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/doug.burden/32/179967_2.png) [@doug.burden](https://forum.bubble.io/u/doug.burden)\
**Post date:** [September 11, 2022, 1:57am UTC](https://forum.bubble.io/t/filterjson-data/143599/5 "2022-09-11T01:57:59Z")

</div>

did you ever find a real solution for this?

---

<div class="post-metadata">

**Author:** ![doug.burden](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/doug.burden/32/179967_2.png) [@doug.burden](https://forum.bubble.io/u/doug.burden)\
**Post date:** [September 11, 2022, 2:05am UTC](https://forum.bubble.io/t/filterjson-data/143599/6 "2022-09-11T02:05:43Z")

</div>

I actually just solved this with bubble. Reach out if you still need help.

---

<div class="post-metadata">

**Author:** ![mfdemo.com](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mfdemo.com](https://forum.bubble.io/u/mfdemo.com)\
**Post date:** [September 26, 2022, 2:05pm UTC](https://forum.bubble.io/t/filterjson-data/143599/7 "2022-09-26T14:05:54Z")

</div>

Hi there,  
could you please share your solution for this problem?  
Since I couldn’t find another solution, I would be very grateful!

---

<div class="post-metadata">

**Author:** ![doug.burden](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/doug.burden/32/179967_2.png) [@doug.burden](https://forum.bubble.io/u/doug.burden)\
**Post date:** [September 26, 2022, 2:46pm UTC](https://forum.bubble.io/t/filterjson-data/143599/8 "2022-09-26T14:46:48Z")

</div>

what’s the problem you’re having?

---

<div class="post-metadata">

**Author:** ![mfdemo.com](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mfdemo.com](https://forum.bubble.io/u/mfdemo.com)\
**Post date:** [September 27, 2022, 7:57am UTC](https://forum.bubble.io/t/filterjson-data/143599/9 "2022-09-27T07:57:19Z")

</div>

Thank you for your fast reply, i got it figured out - the problem was a Repeating Group Element in the Background which messed up my data type.
