Hello JSON knower,
I need help with JSON and list view.
I have a API URL and get the answer in Json. I have Json Extension and collin tree listview.
((s://min-api.cryptocompare.com/data/v2/news/?feeds=cointelegraph&extraParams=YourSite))
In the json answer you get the URL of the IMG (preview image), the Title, the URL to the news, and the Body for Content.
I worked around 2 dayys now and i have no possible function.
I want to have a list with all news of that feed. Each article is a List Element.
And if you click on a listview your browser or web viewer opends and show you the news article.
I know how to work with lists and so on but i have no idea how to work with that json and a list.
If i have this data in firebase i know how to work with but i dont know how to get the data out of the json
Can someone help me pls, i know for a knower of this, that for him is this 3 mins of work.
the url is in the text in the (( but i delete hhtp )) but here again (s: //min-api.cryptocompare.com/data/v2/news/? feeds = cointelegraph & extraParams = YourSite))
JSON and list of lists: example1 and example2
Taifun
PS: please ask only in the community of the App Inventor distribution you are using and not everywhere. Thank you.
Hi,
I have made the App. I hope this is what you are Looking for : NewsFeedAPI.aia (4.1 KB)
You can use this website : Best JSON Viewer and JSON Beautifier Online to see Json and understand it properly in case of a complex Structure and if its a simple one just looking at it will give you the idea.
If you need any more help just ask me and if this solved your issue Mark this As the Solution as well.
Thanks
PS: I was busy with some other Work so i took a long time to help you Sorry for that
thanks for your ansewer, Taifun, but this is not that how it works for me i dont know how to use this whith my block and with collintree i look that i bring that to work and than i change it to colin treeview (want)
In my example i have the problem with the lengh of tist (data) i have 3 object in the json data. The third one is the data object what i have to open and there are from 1 to 50 or more ID, each id i can open where i have different tags with values like title and so on.
I dont know how to count all id. i get each tim -1 bc its an object.
But i will look now into your method maybe i can
work with that.
And with that aia file from the other guy
Thanks man for help This posts are useful, i dont worked with that block in the past- Good to know
Perfect man i saw it, i change it only to collin tree bc of more possible design changes. thanks again. i can implement that now in my app. next part done. only 30 news pages left. and a few other things.
I was looking to do this a long time ago. Thank you!. It also works with rss ?. Maybe you can help me how to get the metadata or Open Graph of a link. Thanks again!