# Cloud variables misunderstood

**URL:** <https://community.thunkable.com/t/cloud-variables-misunderstood/1622107>\
**Category:** Questions about Thunkable X\
**Created:** [November 17, 2021, 10:17pm UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107 "2021-11-17T22:17:21Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 20, 2021, 11:38am UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/22 "2021-11-20T11:38:57Z")

</div>

One way around it is to build a custom Data Viewer List in StP and then use it in your project. It will be aligned and in the format you want.

---

<div class="post-metadata">

**Author:** ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)\
**Post date:** [November 20, 2021, 11:44am UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/23 "2021-11-20T11:44:53Z")

</div>

I thought data viewer works only with airtable Google sheets or local base

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 20, 2021, 11:56am UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/24 "2021-11-20T11:56:50Z")

</div>

Yes, this is correct. Take the data and store it in local table to view it using the Data Viewer List.

---

<div class="post-metadata">

**Author:** ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)\
**Post date:** [November 20, 2021, 12:46pm UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/25 "2021-11-20T12:46:12Z")

</div>

my project is developed with DND how can I use STP? can we navigate between the two?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 20, 2021, 12:50pm UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/26 "2021-11-20T12:50:02Z")

</div>

You can design the `Data Viewer List` in StP and use it in DnD.

See this tutorial

[![](https://img.youtube.com/vi/UIZtLgELGyk/maxresdefault.jpg "Data Viewer Custom Layouts Tutorial [Snap to Place]") ](https://www.youtube.com/watch?v=UIZtLgELGyk)

---

<div class="post-metadata">

**Author:** ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)\
**Post date:** [December 17, 2021, 7:18pm UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/27 "2021-12-17T19:18:57Z")

</div>

in a previous post I had said that I had not understood everything about objects, although I can achieve certain results on the other hand in the following case  
i would like to get everything under disassembly and i can’t get it !  
i get this response  
{“disassembly”:[null,{“task1”:{“start”:“12:23”,“end”:“12:34”},“task2” etc…  
what I don’t understand is this null between disassembly and task1

 ![Capture d’écran 2021-12-17 à 19.45.14](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/f/6f6ccd2393b12ff42e2f74206681221950910b5c.jpeg)

task1, task2, task3 are objects defined each one by start and end times

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 17, 2021, 7:33pm UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/28 "2021-12-17T19:33:07Z")

</div>

Is this from Firebase? Can you post a screenshot from your Firebase console? Did you make the screenshot above using a graphics editor? I’m confused… it sounds like the JSON response you got contains a null value but you think the database should have the key “team1”. If the JSON shows null for that key, then it doesn’t exist. And neither does anything below it (task 1, task 2, task 3). So I need to see the actual Firebase structure.

If you’re able to post the full JSON response as text, that would be helpful, too.

---

<div class="post-metadata">

**Author:** ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)\
**Post date:** [December 17, 2021, 7:35pm UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/29 "2021-12-17T19:35:23Z")

</div>

hi

yes this is from firebase and I made the mistake of not transcribing exactly the current structure of the database which looks like this

 ![Capture d’écran 2021-12-17 à 20.39.38](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/0/a02a0e95baf5e473ca04e518e0c7bf4bd33fc820.jpeg)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 17, 2021, 7:42pm UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/30 "2021-12-17T19:42:30Z")

</div>

I think we should keep this merged with the existing discussion about these issues:

> [@Cloud variables misunderstood](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107):
>
> hi I would like to understand why these 2 series of blocks return null i got the cloud value in a label this way

@jared are you able to help with that? When I’ve tried to merge topics, I’ve not had much success.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 17, 2021, 7:45pm UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/31 "2021-12-17T19:45:54Z")

</div>

You’ve provided two sketches of data and they conflict with each other. I would need to see a screenshot of the actual Firebase console data to be able to help you further.

And the full JSON response as text.

Because one of your sketches shows key names (e.g. team1) and one shows what could be a list (1, 2). These need to be handled differently in Thunkable.

---

<div class="post-metadata">

**Author:** ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)\
**Post date:** [December 17, 2021, 7:54pm UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/32 "2021-12-17T19:54:54Z")

</div>

at first I will take a few blocks so that my structure corresponds to the first example and secondly I will have to learn to manage firebase lists with thunkable

thanks for your support

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 17, 2021, 7:59pm UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/33 "2021-12-17T19:59:34Z")

</div>

An example of parsing a JSON list is if you have this data:

```auto
{ "name":"John", "age":30, "cars":["Ford", "BMW", "Fiat"] }

```

Then you can get the value “BMW” by referencing this property:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/9/792c3bbc1357c586af6e264445d4d00c3dbef999.png)

A bracket [represents a list/array in JSON so you have to use List blocks in Thunkable or use brackets [] within a property block.

If you paste the **full** JSON response into [Best JSON Viewer and JSON Beautifier Online](https://codebeautify.org/jsonviewer), you can click Tree Viewer to see the data structure and then click on a key/property to see the path to that key at the top.

See the screen with your username in this demo project:

[https://x.thunkable.com/copy/95671702d2bcdb150d3b524bcb1d1d1b](https://x.thunkable.com/copy/95671702d2bcdb150d3b524bcb1d1d1b)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 18, 2021, 11:10am UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/34 "2021-12-18T11:10:32Z")

</div>

> [@bibbi](#):
>
> i get this response  
> {“disassembly”:[null,{“task1”:{“start”:“12:23”,“end”:“12:34”},“task2” etc…  
> what I don’t understand is this null between disassembly and task1

Hi @bibbi  
I used the sample (incomplete) JSON and found that you are using nested loops. I completed the JSON text to be this way

```auto
{"disassembly":[{"task1":{"start":"12:23","end":"12:34"},"task2":{"start":"13:24","end":"13:35"},"task3":{"start":"14:25","end":"14:36"}}]}

```

As you can see I added more `task` sample data and was able to retrieve the data in both a `Label` and a `List Viewer` from these blocks

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/4/54f85377683b1eb85c0a2c5efbb5ec5556f82e53.png)

Here is a sample output

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/7/07c31603de0bce87050c9a7722078d37b46d2731.png)

Hope this can be helpful.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 18, 2022, 11:11am UTC](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107/35 "2022-03-18T11:11:04Z")

</div>

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

[Previous page](https://community.thunkable.com/t/cloud-variables-misunderstood/1622107.md?page=1)
