# Show firebase realtimedb object properties in listviewer

**URL:** <https://community.thunkable.com/t/show-firebase-realtimedb-object-properties-in-listviewer/73999>\
**Category:** Questions about Thunkable X\
**Tags:** listviewer, realtimedb\
**Created:** [April 4, 2019, 8:29am UTC](https://community.thunkable.com/t/show-firebase-realtimedb-object-properties-in-listviewer/73999 "2019-04-04T08:29:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_T.Spears](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/william_t.spears/32/31230_2.png) [@William\_T.Spears](https://community.thunkable.com/u/William_T.Spears)\
**Post date:** [April 4, 2019, 8:29am UTC](https://community.thunkable.com/t/show-firebase-realtimedb-object-properties-in-listviewer/73999/1 "2019-04-04T08:29:32Z")

</div>

Hi all, i’m new to thunkable so sorry if i missed something from docs.

I’ve a firebase realtime db which stores some basic infos about users, categories and devices.  
My db looks like this

– root  
---- users  
----- idUser0  
------- nameFull = “User Name0”  
------- nameAlias = “User0”  
----- idUser1  
------- nameFull = “User Name1”  
------- nameAlias = “User2”  
---- categories  
----- idCategory0  
------- name = “Category 1”  
------- description = “Description for category 1”  
----- idCategory1  
------- name = “Category 1”  
------- description = “Description for category 1”  
---- devices  
----- idDevice0  
------- brand = “Brand”  
------- model = “Model”  
------- name = “Personal Phone”  
------- carrier = “No Carrier”  
------- user = /users/idUser0  
----- idDevice1  
------- brand = “Brand 2”  
------- model = “Model 2”  
------- name = “Work Phone”  
------- carrier = “Business carrier”  
------- user = /users/idUser1

In the screen “ScreenMain” i placed a block on screen open which gets /users, if error is true i show the error details in an alert, so far i’m fine.

If i don’t have error, i’ll get a json object as reply inside value block, how can i show all the nested items (isUser0 and idUser1) inside a listviewer?

Thanks in advance to all

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [April 5, 2019, 3:32pm UTC](https://community.thunkable.com/t/show-firebase-realtimedb-object-properties-in-listviewer/73999/2 "2019-04-05T15:32:28Z")

</div>

Hi @William_T.Spears,

We have a lot of resources about this, but admittedly they are pretty dispersed. I’ll try collect a few of them and do a bit of an FAQ next week.

In the meantime, does this help you with your question?

> [@API results into a List Viewer](http://community.thunkable.com/t/api-results-into-a-list-viewer/51051/5):
>
> @Mark, Thanks for your response. I got it working now! The issue is the 'get object from JSON' block will not connect to the 'for each item j in list' block as depicted here: [Not%20Connecting] However if I save the 'get object from JSON - response' block in a list variable 1st, I am then able to connect the variable to the 'for each item j in list' block. Glad to have this working, and I’ve added my final solution below. Thanks, Darren The following shows how to loop through a JSON List…

---

<div class="post-metadata">

**Author:** ![William\_T.Spears](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/william_t.spears/32/31230_2.png) [@William\_T.Spears](https://community.thunkable.com/u/William_T.Spears)\
**Post date:** [April 8, 2019, 12:31pm UTC](https://community.thunkable.com/t/show-firebase-realtimedb-object-properties-in-listviewer/73999/3 "2019-04-08T12:31:20Z")

</div>

Hi @domhnallohanlon, i tried the blocks you mentioned but it didn’t work…  
or at least i coulnd’t make it work.

FirebaseDB will expose data as nested JSON Objects so i can’t cast it directly to list as i would do with a custom API which returns data stored as JSON Array. Is there a way to “extract” all the first level keys?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [April 11, 2019, 9:12am UTC](https://community.thunkable.com/t/show-firebase-realtimedb-object-properties-in-listviewer/73999/4 "2019-04-11T09:12:20Z")

</div>

Hi @William_T.Spears - I’m going to start working on a larger series of tutorials on working with JSON. Keep an eye on #thunkable-cross-tutorials for new posts.

Thanks.

---

<div class="post-metadata">

**Author:** ![William\_T.Spears](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/william_t.spears/32/31230_2.png) [@William\_T.Spears](https://community.thunkable.com/u/William_T.Spears)\
**Post date:** [April 11, 2019, 11:07am UTC](https://community.thunkable.com/t/show-firebase-realtimedb-object-properties-in-listviewer/73999/5 "2019-04-11T11:07:56Z")

</div>

@domhnallohanlon many thanks!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:15pm UTC](https://community.thunkable.com/t/show-firebase-realtimedb-object-properties-in-listviewer/73999/6 "2024-11-08T12:15:23Z")

</div>


