/ / Analisi del feed JSON nella pagina Web [chiuso] - javascript, jquery, html, json

Parsing JSON feed alla pagina web [closed] - javascript, jquery, html, json

Voglio estrarre i dati (titolo, autore, ecc.) Da questo file json: http://www.nba.com/grizzlies/api/v1/json

Come potrei fare questo in Javascript / jQuery? Non riesco a riuscirci.

risposte:

0 per risposta № 1
$.ajax({
type: "GET",
url: "http://www.nba.com/grizzlies/api/v1/json",
dataType: "jsonp",
success: function (data) {
console.log(data);
$.each(data, function (index, value) {
$.each(value, function (idx, val) {
console.log(val.author);


})


})

},
error: function (data) {

}
});

Se vuoi provare la demo qui sotto.

dimostrazione