{
"1370" : ["Tomai", "Grabowski", "Chebotko", "Egle"],
"2380" : ["Schweller", "Chen", "Tomai"],
"3333" : ["Schweller", "Chen", "The Devil"]
}
I would assume that you would access say chebotko by 1370[2] but it isn't giving me anything. What am I doing wrong?
This is how I am accessing it.
$.getJSON("instructors.json", function(data) {
console.log(data);
// data is a JavaScript object now. Handle it as such
});