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

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -