# Can't get properties from list object

**URL:** <https://community.thunkable.com/t/cant-get-properties-from-list-object/370497>\
**Category:** Questions about Thunkable X\
**Created:** [December 16, 2019, 6:54pm UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497 "2019-12-16T18:54:01Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![smangat12njpy2n](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@smangat12njpy2n](https://community.thunkable.com/u/smangat12njpy2n)\
**Post date:** [December 16, 2019, 6:54pm UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/1 "2019-12-16T18:54:01Z")

</div>

For my project, I followed the “How to use Thunkable Web API Component: Countries Info App” tutorial because the structure of the response to the API I am querying is the same as the one in tutorial. Yet my app only displays one of the object’s properties and none of the properties of the objects in an array/list within the response. Below is an example of the response as well as my work. What am I doing incorrectly?

The response:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/2/1243b5e8dd5f1141fc5e7bc921152b9416c1ec22.png)

My work:

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

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 17, 2019, 7:54am UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/2 "2019-12-17T07:54:22Z")

</div>

If you cannot get the value of the JSON node, then use this error search algorithm

1. Check that the JSON data has arrived in the desired variable. If the data has not been received, then there is an error in the request to the server; if it is, then go to the next step.

2. In the given variable, get the data of the root node. If the expected ones were received successfully, then get the data of the next level and so on before building the path.

No need to build a path right away. Build the path in parts and each time check its correctness.

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [July 27, 2020, 6:22pm UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/3 "2020-07-27T18:22:55Z")

</div>

I can´t get the probertys either here is the blocks i used.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/e/befad308f07274aded804f430fc072a4ae5a06ea.png)  
Her is the data ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/b/dbba6ec111b6b9563f6e21e091ff1c3933db8180.png)  
I can get the data if i just use the “response” block directly on the label set text.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 28, 2020, 6:34am UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/4 "2020-07-28T06:34:17Z")

</div>

First, you need to make sure that there are no errors and the desired block contains correct data. And you try to work with them immediately without checks. It’s like a driver going 100 miles an hour into an unfamiliar dark tunnel and thinking there’s a way out and everything will be fine. And if there is a blank wall 50 meters away, and the builders forgot to put fences in front of the tunnel?

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [July 28, 2020, 9:54am UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/5 "2020-07-28T09:54:32Z")

</div>

I cant see there is errors since the text comes fine when i use the respons block directly on the green label set text block. There i see the text fine and i can make a fine list with , seperation and sort it that way. But that is not the right way to do it…

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 28, 2020, 10:09am UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/6 "2020-07-28T10:09:53Z")

</div>

You can think of JSON as a cabbage. To get to the stalk, you need to tear off one leaf after another sequentially. Imagine that the property of an object is a stump. How do you get it? First, get the external object in Label. Text. If it worked, then you will get the first child object. If it worked, then the next one, and so on. Do you understand this idea?

Tell me what the brackets [and] and { and } mean in JSON data?

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [July 28, 2020, 12:40pm UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/7 "2020-07-28T12:40:37Z")

</div>

Thanks for your fine explanation. But I have tryed every kind of block connection and nothing seem to work. Yes {} is objects and is arrays.

This block return all the respons below ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/8/e886876847f1fc28399a43f4785721f4febe16c2.png)  
NO errors.  
If I follow the turturials it should look like this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/0/f0bd5c668d1a2591a86f5a3a69f215d7fb5202af.png) but the respons is undefined.  
I search on email and get this out. I really hope you will help me by showing witch blocks i should use here…

Below is the Json data. I dont get any errors at all.  
Response Body  
{  
“Customers”: [  
{  
“CustomerNo”: 1893,  
“Id”: “b2f67b24-7d64-43ed-90bb-7cd05bc71c0a”,  
“Name”: “Mikael Frederiksen”,  
“Email”: “mikaelf@live.dk”,  
“Phone”: “28689456”,  
“PhoneAlt”: “”,  
“AddressLine1”: “”,  
“AddressLine2”: “”,  
“ZipCode”: “0”,  
“CityName”: “-”,  
“CountryCode”: “DK”,  
“Birthday”: null  
}  
],  
“Count”: 1  
}

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 28, 2020, 2:19pm UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/8 "2020-07-28T14:19:06Z")

</div>

> Yes {} is objects and is arrays.

You answered correctly, the brackets are an array, but why don’t your blocks have a block for working with an array?

The value of the “Customers " node is a list of objects, so you need to use a block that returns a list item - it will be an object. and then you need to get the property of this object. Now you understand what you need to do?

I recommend that you spend another 10-15 minutes on this task. You will be very pleased if you solve it yourself. You will understand how you can solve similar problems.

If you can’t solve it in any way, then open the project with the solution using the link.

[https://x.thunkable.com/projects/5f2035324f2b3c3f6967cd98/project/properties/designer/](https://x.thunkable.com/projects/5f2035324f2b3c3f6967cd98/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [July 28, 2020, 2:57pm UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/9 "2020-07-28T14:57:27Z")

</div>

Funally I got it thanks a lot.

I have earlyer asked how the text clicl block works. Now I have made this.  
It should work like this,  
When you click the C\_password1\_txt field is shoul write the name tah is registret to the recorded email. What is wrong because i dont get inside the block and the test function is not writen in the Navn text field. Or have I completely misunderstod these text functions???

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

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 28, 2020, 3:16pm UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/10 "2020-07-28T15:16:16Z")

</div>

First, you need to clearly understand what parameters are required by the web server you want to connect to, what data transfer method it requires, how authorization occurs, and so on.

If you send an invalid request to the server, it will never return the data you need. It will return an error that you should get and that will make it possible to understand what is being done wrong

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [July 28, 2020, 3:20pm UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/11 "2020-07-28T15:20:51Z")

</div>

Okay to simplify it a little.  
Should the text “test function” come op in the Navn\_txt field when I activate the C\_password1 text field??? If yes, it dosent.!!!  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/5/f53cfeca0b23039d4a84ea4102b4b3f6f5a46d1d.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 28, 2020, 6:20pm UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/12 "2020-07-28T18:20:46Z")

</div>

I think I understand. You, like some other users, just don’t have a button click handler working. Unfortunately, I don’t know the solution to this problem. Try clicking on Label instead of the button

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [July 28, 2020, 6:50pm UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/13 "2020-07-28T18:50:15Z")

</div>

That is also what I do. And as far as I understand should i execute what is inside the block when i activate the textfield and start writing. Isnt that right???  
But is there somewhere I can read about how the click text block works.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 29, 2020, 5:36am UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/14 "2020-07-29T05:36:56Z")

</div>

The Click block works the same everywhere - click/tap on a component

---

<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, 11:46am UTC](https://community.thunkable.com/t/cant-get-properties-from-list-object/370497/15 "2024-11-08T11:46:21Z")

</div>


