I have found the following JSON resource for global COVID infection data:
https://opendata.ecdc.europa.eu/covid19/casedistribution/json/
I have tried this simple callback function (And many variations) to verify I am in fact receiving something back that I can parse:
<script>
mycallback=function(data){
console.log('You have data! '+data)
};
</script>
<script src='https://opendata.ecdc.europa.eu/covid19/casedistribution/json/?callback=mycallback'>
</script>
But this returns a big fat nothing, no console log entry, and no error code.
What am I doing wrong?
If anyone has tips on how to 'Parse' this 'data' that would also be appreciated, since I understand what I am getting is technically a script, but I could use it even if I treated the response as raw text.