Json nested parse for spinner

sorry if i’m late and i don’t understand but i’ve been going crazy for two days, i can’t even sleep.

I have to acquire a list of provinces from a json file you showed me how to import it the problem is the structure of the json.

I can’t point to the name of the province.

the main object is called regions which is an array which contains a list of objects which is called provinces which is in turn an array which contains the name as well as the code and another array which contains the municipalities.

I should extract the names of the provinces and insert them in a spinner then in another spinner show the municipalities filtered for the chosen province.

I can not make it!

the json file is this

https://firebasestorage.googleapis.com/v0/b/serviziassociati730.appspot.com/o/italia_comuni.json?alt=media&token=eefe0ffc-aa7a-4df1-b77d-2d144a60f6cb

Questi sono alcuni tentativi


Can you help me!

Thanks in advance

Excuse my orrible english

Stefano

A post was merged into an existing topic: Json in spinner component use list