Newbie ... Json data

I am a newbie with Wappler
I am trying to read the data in a JSON file via API
The JSON file is structured as you can see in the following image

General Structure

Unfortunately I can’t generate a repetition, indeed the repetition works but it always displays the same value

data name

this is the code

{{api1.data.data[0].localTeam.data.name}}

The value 0 should change until it reaches the last array (in this case 73)
In fact, if I change the value between the square brackets I get the right data.

With 0

With other number

How can I solve?
Thanks
Roberto

You need to use a repeat on the api1.data.data. Then inside the repeat you might want to use the name element as dynamic text in a paragraph using {{name}}

You can find out more here:
https://docsdev.wappler.io/guides/data-types-and-binding?id=using-repeating-elements

Thank you!
not {{name}} but {{localTeam.data.name}}

Now it works
:wink:

1 Like