# Best and correct way to read a json response and parse to list

**URL:** <https://community.thunkable.com/t/best-and-correct-way-to-read-a-json-response-and-parse-to-list/269466>\
**Category:** Questions about Thunkable X\
**Created:** [October 13, 2019, 2:08am UTC](https://community.thunkable.com/t/best-and-correct-way-to-read-a-json-response-and-parse-to-list/269466 "2019-10-13T02:08:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![itcare.desarrollosiw](https://avatars.discourse-cdn.com/v4/letter/i/8e7dd6/32.png) [@itcare.desarrollosiw](https://community.thunkable.com/u/itcare.desarrollosiw)\
**Post date:** [October 13, 2019, 2:08am UTC](https://community.thunkable.com/t/best-and-correct-way-to-read-a-json-response-and-parse-to-list/269466/1 "2019-10-13T02:08:52Z")

</div>

I have a json response from Web Api component. What could be the correct way to populate a empty list with the 5 elements (could be any number) of selPer property?

Text:  
{“seID”:“3b97189c-c766-4ce9-89de-bb2182157a76”,“sePer”:[“MAG041126GT8”,“POM030403GG2”,“SEG970227BQ2”,“SME0905211XA”,“SOL021205B49”,“SSE090521HN6”]}

Image:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/b/2bcc4bef77df11ef29bd4826dd20ab4246caa0c2.png)

Thanks  
Alejandro Castrejon

---

<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:** [October 13, 2019, 10:18am UTC](https://community.thunkable.com/t/best-and-correct-way-to-read-a-json-response-and-parse-to-list/269466/2 "2019-10-13T10:18:24Z")

</div>

scrJSON - how to work with JSON and List Viewer

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

---

<div class="post-metadata">

**Author:** ![itcare.desarrollosiw](https://avatars.discourse-cdn.com/v4/letter/i/8e7dd6/32.png) [@itcare.desarrollosiw](https://community.thunkable.com/u/itcare.desarrollosiw)\
**Post date:** [October 15, 2019, 1:02am UTC](https://community.thunkable.com/t/best-and-correct-way-to-read-a-json-response-and-parse-to-list/269466/3 "2019-10-15T01:02:56Z")

</div>

I made this demo screen

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/8/986d099539a5c413552d0c2519df53e9dea969ba.png)

When starts call the web API

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/6/66a75553b0dd897a3106c6f2d4efd6ae66121dd7.png)  
Receive a Json result  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/4/34bc4c898ef1ad762a716cd8f04c539efe0edacb.png)

I read the sePer property of json to app variable called json\_rfc and show the result in a Text Input component  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/3/43c727937d1f661959dea78944b232f4fbededd7.png)

When I try to make the list from the variable json\_rfc does not works

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

But when I make the list from the Text Input text its works fine

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/f/df536dfde9c575a4d6693d40d8993b13b5c7dd0b.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/c/0cfbf7bcde520056386d577ce3f0b9c6ff68489d.png)

Its that a bug from thunkable or I miss todo something?

---

<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:** [October 15, 2019, 7:59am UTC](https://community.thunkable.com/t/best-and-correct-way-to-read-a-json-response-and-parse-to-list/269466/4 "2019-10-15T07:59:11Z")

</div>

You have an error in the blocks, because you’re trying to JSON from a list to make another list. The variable “app json\_rfc” you have is a list. You get it?

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

Brackets indicate that you have an array (list) of nodes

---

<div class="post-metadata">

**Author:** ![itcare.desarrollosiw](https://avatars.discourse-cdn.com/v4/letter/i/8e7dd6/32.png) [@itcare.desarrollosiw](https://community.thunkable.com/u/itcare.desarrollosiw)\
**Post date:** [October 15, 2019, 11:46am UTC](https://community.thunkable.com/t/best-and-correct-way-to-read-a-json-response-and-parse-to-list/269466/5 "2019-10-15T11:46:05Z")

</div>

Yes. I use it like a list and woks fine.

Thanks a lot

You are great

---

<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:08pm UTC](https://community.thunkable.com/t/best-and-correct-way-to-read-a-json-response-and-parse-to-list/269466/6 "2024-11-08T12:08:40Z")

</div>


