# Is this problem because of nested data?

**URL:** <https://forum.bubble.io/t/is-this-problem-because-of-nested-data/14951>\
**Category:** APIs\
**Created:** [June 27, 2017, 2:43pm UTC](https://forum.bubble.io/t/is-this-problem-because-of-nested-data/14951 "2017-06-27T14:43:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jan.hoos](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@jan.hoos](https://forum.bubble.io/u/jan.hoos)\
**Post date:** [June 27, 2017, 2:43pm UTC](https://forum.bubble.io/t/is-this-problem-because-of-nested-data/14951/1 "2017-06-27T14:43:04Z")

</div>

Hello everyone,

I’m experimenting with Bubble to make some app’s with our API module. Its for our University of Applied Sciences and one of the API’s I’m working with is for the grades from one student. I read somewhere that Bubble cant deal with nested data. I have no experience with JSON, but the data below looks like nested data.

Below is the test environment data that I can pull.

> {  
> “metadata”: {  
> “version”: “v1”,  
> “totalItems”: 77,  
> “totalPages”: 8,  
> “pageSize”: 10,  
> “hu\_pageNumber”: 1  
> },  
> “data”: [  
> {  
> “hu\_student”: “1656942”,  
> “hu\_StudentDisplayName”: “René Mijnhu”,  
> “testResultId”: “2016|TCHT-AFOP8V-15|TOETS2”,  
> “courseId”: “2016|TCHT-AFOP8V-15”,  
> “hu\_courseTitle”: “Final Assignment”,  
> “courseResult”: “[https://huapim.azure-api.net/TEST/course/v1/courseresults/1656942/2016|TCHT-AFOP8V-15](https://huapim.azure-api.net/TEST/course/v1/courseresults/1656942/2016%7CTCHT-AFOP8V-15)”,  
> “hu\_collegeYear”: “2016”,  
> “hu\_examinerDisplayName”: “name.surname@hu.nl”,  
> “description”: “ASS Afstudeeropdracht CT”,  
> “lastModified”: “2017-01-31T00:00:00Z”,  
> “testdate”: “2017-01-31T00:00:00Z”,  
> “grade”: “8”,  
> “comment”: “CURSUS\_TOETS”,  
> “passed”: true,  
> “weight”: 100  
> },  
> {  
> “hu\_student”: “1656942”,  
> “hu\_StudentDisplayName”: “René Mijnhu”,  
> “testResultId”: “2016|TCHT-AFOP8V-15|TOETS1”,  
> “courseId”: “2016|TCHT-AFOP8V-15”,  
> “hu\_courseTitle”: “Final Assignment”,  
> “courseResult”: “[https://huapim.azure-api.net/TEST/course/v1/courseresults/1656942/2016|TCHT-AFOP8V-15](https://huapim.azure-api.net/TEST/course/v1/courseresults/1656942/2016%7CTCHT-AFOP8V-15)”,  
> “hu\_collegeYear”: “2016”,  
> “hu\_examinerDisplayName”: “name.surname@hu.nl”,  
> “description”: “OPDR Plan van Aanpak AO”,  
> “lastModified”: “2016-10-03T00:00:00Z”,  
> “testdate”: “2016-10-03T00:00:00Z”,  
> “grade”: “VD”,  
> “comment”: “CURSUS\_TOETS”,  
> “passed”: true,  
> “weight”: 0  
> },  
> {  
> “hu\_student”: “1656942”,  
> “hu\_StudentDisplayName”: “René Mijnhu”,  
> “testResultId”: “2015|TCHT-TRVE6V-14|TOETS1”,  
> “courseId”: “2015|TCHT-TRVE6V-14”,  
> “hu\_courseTitle”: “Transport Phenomena”,  
> “courseResult”: “[https://huapim.azure-api.net/TEST/course/v1/courseresults/1656942/2015|TCHT-TRVE6V-14](https://huapim.azure-api.net/TEST/course/v1/courseresults/1656942/2015%7CTCHT-TRVE6V-14)”,  
> “hu\_collegeYear”: “2015”,  
> “hu\_examinerDisplayName”: “name.surname@hu.nl”,  
> “description”: “CTP continue toetsing praktijk”,  
> “lastModified”: “2016-06-23T00:00:00Z”,  
> “testdate”: “2016-06-23T00:00:00Z”,  
> “grade”: “7,3”,  
> “comment”: “CURSUS\_TOETS”,  
> “passed”: true,  
> “weight”: 35  
> },  
> {  
> “hu\_student”: “1656942”,  
> “hu\_StudentDisplayName”: “René Mijnhu”,  
> “testResultId”: “2015|TCHT-REAT6V-14|TOETS1”,  
> “courseId”: “2015|TCHT-REAT6V-14”,  
> “hu\_courseTitle”: “Reactor Technology”,  
> “courseResult”: “[https://huapim.azure-api.net/TEST/course/v1/courseresults/1656942/2015|TCHT-REAT6V-14](https://huapim.azure-api.net/TEST/course/v1/courseresults/1656942/2015%7CTCHT-REAT6V-14)”,  
> “hu\_collegeYear”: “2015”,  
> “hu\_examinerDisplayName”: “name.surname@hu.nl”,  
> “description”: “CTP continue toetsing praktijk”,  
> “lastModified”: “2016-06-21T00:00:00Z”,  
> “testdate”: “2016-06-21T00:00:00Z”,  
> “grade”: “7,3”,  
> “comment”: “CURSUS\_TOETS”,  
> “passed”: true,  
> “weight”: 35  
> }  
> ]  
> }

When I put that in a new thing inside Bubble, I dont get every entry in a new row, but all the grades are being dumped in one cell. This way I dont know how to pull out seperate data. I know some PHP,MSQL. I thought I needed to get every entry on a new row in the database.

Heres an Image with the data in the database.  
[http://imgur.com/a/dOTdg](http://imgur.com/a/dOTdg)

Can anyone help me? I’ve been puzzling with this issue for a few days and cant wrap my head around it. Is the way the data is being dumped, the way it should be dumped with JSON? How can I show a list of grades to the user in the app when everything is being dumped?

Cheers,  
Jan

---

<div class="post-metadata">

**Author:** ![vincent56](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vincent56/32/16009_2.png) [@vincent56](https://forum.bubble.io/u/vincent56)\
**Post date:** [June 27, 2017, 2:44pm UTC](https://forum.bubble.io/t/is-this-problem-because-of-nested-data/14951/2 "2017-06-27T14:44:32Z")

</div>

Is that actual personal information from HU? Maybe better to blur that out?

---

<div class="post-metadata">

**Author:** ![jan.hoos](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@jan.hoos](https://forum.bubble.io/u/jan.hoos)\
**Post date:** [June 27, 2017, 2:46pm UTC](https://forum.bubble.io/t/is-this-problem-because-of-nested-data/14951/3 "2017-06-27T14:46:59Z")

</div>

Thanks! Turns out one of the names where not fake ones. Editted the personal information out of the example.

---

<div class="post-metadata">

**Author:** ![vincent56](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vincent56/32/16009_2.png) [@vincent56](https://forum.bubble.io/u/vincent56)\
**Post date:** [June 27, 2017, 6:27pm UTC](https://forum.bubble.io/t/is-this-problem-because-of-nested-data/14951/4 "2017-06-27T18:27:59Z")

</div>

No problem, better safe than sorry 😃  
Not an answer to your question though…

---

<div class="post-metadata">

**Author:** ![collegefund.me](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/collegefund.me/32/11688_2.png) [@collegefund.me](https://forum.bubble.io/u/collegefund.me)\
**Post date:** [June 28, 2017, 1:11am UTC](https://forum.bubble.io/t/is-this-problem-because-of-nested-data/14951/5 "2017-06-28T01:11:49Z")

</div>

> [@jan.hoos](#):
>
> I read somewhere that Bubble cant deal with nested data.

The nested data issue related to Webhooks… it’s been fixed as of last week, please see here:

> [@\[New Feature\] Smart detection of request data for API workflows](http://forum.bubble.io/t/new-feature-smart-detection-of-request-data-for-api-workflows/14657/19):
>
> @emmanuel and the bubble team deserve this more than me. I guess when passionate about something like Bubble then great things are made

---

<div class="post-metadata">

**Author:** ![mishav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mishav/32/6420_2.png) [@mishav](https://forum.bubble.io/u/mishav)\
**Post date:** [June 28, 2017, 1:25am UTC](https://forum.bubble.io/t/is-this-problem-because-of-nested-data/14951/6 "2017-06-28T01:25:30Z")

</div>

The nested structure is object / list / objects. If you are using the API Connector, the list should be handled okay, you can see this by setting it to a repeating group.

 ![](https://us1.discourse-cdn.com/bubble/original/2X/7/727ee1e48296bdac5cd6b842c02b278e017cfe3d.png)

![](https://us1.discourse-cdn.com/bubble/original/2X/4/4305ed9ae14d3c386715381fc9bb154ee81636d4.png)

> [@jan.hoos](#):
>
> When I put that in a new thing inside Bubble, I dont get every entry in a new row, but all the grades are being dumped in one cell.

This is the issue, you are putting list data into a single ‘thing’ i.e. a single row. Can you share how you are doing this step? Is it in an API workflow, or a normal workflow?

The easiest way to write multiple things/rows from a list is using ‘Schedule API workflow on a list’, but there are other ways that may be suitable, depending on where you are doing it and how large a list.

Good luck!

---

<div class="post-metadata">

**Author:** ![jan.hoos](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@jan.hoos](https://forum.bubble.io/u/jan.hoos)\
**Post date:** [June 28, 2017, 8:09am UTC](https://forum.bubble.io/t/is-this-problem-because-of-nested-data/14951/7 "2017-06-28T08:09:42Z")

</div>

Great thanks for helping me! At least thats not the problem 🙂

---

<div class="post-metadata">

**Author:** ![jan.hoos](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@jan.hoos](https://forum.bubble.io/u/jan.hoos)\
**Post date:** [June 28, 2017, 8:11am UTC](https://forum.bubble.io/t/is-this-problem-because-of-nested-data/14951/8 "2017-06-28T08:11:50Z")

</div>

Awesome, thats an insight I can use 🙂

I’m following the etsy tutorial ([https://vimeo.com/162729137](https://vimeo.com/162729137)) seen from 4:01 is the workflow they make. I copied that as my test project seemed to do the same. The difference, I realise now, is that the Etsy tutorial works with selecting one specific item number and fetching that from Etsy.

Instead of fetching everything and working with that!
