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

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

Thanks
Alejandro Castrejon

scrJSON - how to work with JSON and List Viewer

https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/

2 Likes

I made this demo screen

When starts call the web API


Receive a Json result
image

I read the sePer property of json to app variable called json_rfc and show the result in a Text Input component
image

When I try to make the list from the variable json_rfc does not works

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


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

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

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

1 Like

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

Thanks a lot

You are great

1 Like