I'm trying to work with JSON data from API. Some JSON I can get, and then work with them. But sometimes I have fail: JSON doesn't recognised.
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
</head>
<body>
<script>
$.getJSON('http://query.yahooapis.com/v1/public/yql?q=select%20%2a%20from%20yahoo.finance.quotes%20WHERE%20symbol%3D%27WRC%27&format=json&diagnostics=true&env=store://datatables.org/alltableswithkeys&callback', function(json_data0) {
alert(JSON.stringify(json_data0));
});
$.getJSON('https://graph.facebook.com/btaylor', function(json_data1){
alert(JSON.stringify(json_data1));
});
$.getJSON('https://btc-e.com/api/2/ltc_usd/ticker', function(json_data2) {
alert(JSON.stringify(json_data2));
});
</script>
</body>
</html>
QUESTION: Why does last api doesn't get by getJSON? The similar situation is for example for https://www.bitstamp.net/api/ticker/