Getting data fon json api

Hello,

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: https://api.sheety.co/3421d896-4d74-4d22-bf67-155e4835cd81

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

3 Likes