Getting data fon json api


I’m trying to get data from a JSON list using the @Abhijith_Dominic method. The problem is I getting this error:

This is the JSON API list:

This is the code:

1 Like

Your global response variable holds a list of list of pairs after decoding from JSON. What you are doing is treating the response variable as a list of pairs. This is wrong.

In fact, you don’t even need global dataList variable. Try replacing it with global response