the json response is valid
http://itunes.apple.com/search?term=jack+johnson
but i get an error … why?
Example:
http://jsfiddle.net/36Vxs/
js
$(document).ready(function() {
var jqxhr = $.ajax( "http://itunes.apple.com/search?term=jack+johnson" )
.done(function(data) { console.log(data); })
.fail(function(data) { console.log(data); })
});
Thanks in advance!
You can’t get JSON from another domain. You need to get JSONP. The following works: