I haven't really looked into must jQuery + JSON. So heres my attempt.
I am wanting to pull data from: http://ddragon.leagueoflegends.com/cdn/4.14.2/data/en_US/rune.json which is an array of data for League Of Legends Runes. I am looking to get the name, description, image -> w y x and stats to be used in a project of mine.
I currently have this:
$(document).ready(function() {
$.getJSON("http://ddragon.leagueoflegends.com/cdn/4.14.2/data/en_US/rune.json", function(data){
$.each(data, function (index, value) {
console.log(value[5001]); //<--- this the ID for one of the runes, to test if it is working
});
});
});
This is the output:
As you can see, the name, description, image -> w, x, y and stats are shown, how would I get it to put these in the console (for chrome) for each one?
Hopefully you guys can help.