Json data works on some sites not on others same code

This also works....

You could also use a webviewer and some runJavascript....
(courtesy @Juan_Antonio HERE)

fetch('\
https://forecast.weather.gov/MapClick.php?lat=40.4406&lon=-79.9958&FcstType=json\
').then( function(response) {\
response.text().then(function(data) {AppInventor.setWebViewString("" + data.toString()); });\
})\
.catch(function(err) {AppInventor.setWebViewString("Error");});
1 Like