I'm trying to convert json data from a website and display it in html:
var obj = 'http://ip-api.com/json';
document.getElementById('info').innerHTML = obj.country + ", " + obj.as;
I am trying to get the JSON code from a url called http://ip-api.com/json, and I am trying to get the data to be read and then shown into html, can anyone help?