This is the link from which I want to get data:
http://xeuroasiantvx.api.channel.livestream.com/2.0/listplaylists.json?callback=listplaylists
Below is my code. Please tell me what I am doing wrong.
$.getJSON('http://xeuroasiantvx.api.channel.livestream.com/2.0/listplaylists.json?callback=listplaylists').then(function(data) {
alert('Your Json result is: ' + data.result); //you can comment this, i used it to debug
result.innerText = data.result; //display the result in an HTML element
}, function(status) { //error detection....
alert('Something went wrong.');
});
i have also tried to use this Fiddle but not working.