Get last item from a json file

Hi!
I have here a following json file:
[{“id_gruppe”:1,“gruppe”:“Programmieren V”},{“id_gruppe”:2,“gruppe”:“Englisch Gramma V”}]

I want to get how many items are in the json. In this exampel are two objects.
I want to get the gruppe of each item.

Because the json can also be:
[{“id_gruppe”:1,“gruppe”:“Programmieren V”},{“id_gruppe”:2,“gruppe”:“Englisch Gramma V”},{“id_gruppe”:3,“gruppe”:“Excel Funktionen”},{“id_gruppe”:6,“gruppe”:“Österreich”}]

Hope somebody can help me how I can solve this with thunkable.
kindly regards

1 Like

Check out the for each loop n controls and length of list blocks in lists. You may also need to use the create object from JSON block in the objects section.

1 Like

Hi!
I have tried the following json file to add all gruppe in a listview:

json file:
[{“id_gruppe”:1,“gruppe”:“Programmieren V”},{“id_gruppe”:2,“gruppe”:“Englisch Gramma V”},{“id_gruppe”:3,“gruppe”:“Excel Funktionen”},{“id_gruppe”:6,“gruppe”:“Österreich”}]

I want to add each gruppe into a listview:
result of the listview:
Programmieren V
Englisch Gramma
Excel Funktionen
Österreich

I have tried the following code:
grafik

But when I press the button nothing will happen.
Hope someone can help me there.
kindly regards