It will help you.
Put the response content in a label to see if you receive the data (because the problem may be the url and the request headers that are wrong).
Edit:
What api are you using?
I don’t know what does Web1 decode work, but as I remember, for JSON, use dictionary get value from key
, instead of look for pairs in lists
I am using Rapidapi
What it does is convert the response content into a list
But it’s true that now with the dictionaries it’s easier. Using something like this:
But it always depends on how the Json you get is organized.
For example, if you have this Json:
You can see that the data is within “articles”. So first you have to get the data inside “articles”.
And then you get the tag data you need, like “title”.
I am not getting any response.
How should i use this link to fetch data using current date.
So the problem is not getting the data from a json, it is getting the json.
Check the keys and request headers.
EDIT:
I don’t have access to the api (they ask for a credit card to test it) so I guess you could try something like this:
But you should read the documentation they offer. I am reading what they say and based on that I am telling you what you could do.
So you should read the documentation of the Api
It says this, after tryiing your blocks…
Most probably you set label.Background Color to get response content instead of set Label.Text
Ooh Sorry, I fixed it and got the responce.
The mark appropriate post as solution.
Can anyone guide me that how to get data from inner array of an array like the above json with dictionary. I want to make list of league with name, country and flag.
Thanks in advance.
Have you tried this?
getting trouble in getting value from array in other array.
What is global response in it.
Here what i made.
But the screen is blank
Why don’t you take a good look at the image I sent you?
You’re using the same blocks to get everything.
If you have a Json like that:
1 - You must obtain the data within the article array.
2 - You get the data for “title”
3 - You get the data for “urlToImage”
4 - You get the data for "content
Each of these variables is a list.
LOOK WELL!!
This block
is not the same as this
It seems to me that you’re not paying attention because you’re not even copying the blocks properly.