# No function to decode the json?

**URL:** https://community.thunkable.com/t/no-function-to-decode-the-json/1627215
**Category:** Questions about Thunkable X
**Created:** [November 21, 2021, 5:12pm UTC](https://community.thunkable.com/t/no-function-to-decode-the-json/1627215 "2021-11-21T17:12:16Z")
**Posts on this page:** 6
**Page:** 1

<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 21, 2021, 5:12pm UTC](https://community.thunkable.com/t/no-function-to-decode-the-json/1627215/1 "2021-11-21T17:12:16Z")

</div>

Before using Thunkable, I could read the tree structure of a bucket at once and decode according to what I wanted to obtain  
Here, if I am not mistaken, we can certainly access the properties and values ​​but invoking a cloud variable amounts to reading the database as many times as we want a set of properties and values ​​which can take a lot of time. .  
Is this true?

---

<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: [November 21, 2021, 5:27pm UTC](https://community.thunkable.com/t/no-function-to-decode-the-json/1627215/2 "2021-11-21T17:27:33Z")

</div>

Yes, all true.

But you can get the cloud variable value _once_, assign it to an `app` variable and then use that app variable for all of your decoding/parsing. That way you only do **one** read of the Firebase data.

---

<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 21, 2021, 5:55pm UTC](https://community.thunkable.com/t/no-function-to-decode-the-json/1627215/3 "2021-11-21T17:55:14Z")

</div>

Remember that Firebase will return the value as a `JSON Object` so you can assign this object to an **app** variable and then access any property/value using the `object` blocks.

Something like this  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/8/f8ecb853f063c80cde7d3dd35669e88f5c4d5fa1.png)

---

<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 22, 2021, 3:01am UTC](https://community.thunkable.com/t/no-function-to-decode-the-json/1627215/4 "2021-11-22T03:01:03Z")

</div>

i went through a few posts about json decoding but couldn’t access the td property from the following response

![Capture d’écran 2021-11-22 à 03.55.20](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/8/08aa4e9dbe9e9cf38caedcd7b17548983a0262e4.png)

---

<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 22, 2021, 4:02am UTC](https://community.thunkable.com/t/no-function-to-decode-the-json/1627215/5 "2021-11-22T04:02:05Z")

</div>

You get the value of **td** this way

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/2/52bb8732e383b9af103f769e40d8517b5bb47dea.png)

You can also use the `dot notation` and get the value this way

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/3/3359ef2df248b279ffb8ba2428d21d7d052670ab.png)

---

<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: [February 20, 2022, 4:02am UTC](https://community.thunkable.com/t/no-function-to-decode-the-json/1627215/6 "2022-02-20T04:02:12Z")

</div>

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