javascript - Parsing a JSON document using JS -
javascript - Parsing a JSON document using JS -      here link   http://api.frrole.com/locations   it returning json document , need parse js, dont know why unable it.   here js code print count of "results" array.    $.get( "http://api.frrole.com/locations", function(data) {         alert(data.results.length);     })     .done(function() {         alert("done");     })     .fail(function() {         alert( "error" );     })     .always(function() {         //alert( "finished" );     });    but alerting "error". suggestions why?       javascript json