For some reason I am unable to pull values from a JSON array using jQuery. I have tried many things but it always shows as 'undefined' in the console.
Screenshot attached. Any help would be greatly appreciated.
Edit: currently non working code below:
$(function(){
$.getJSON('MyJSONPathURL', function(data) {
var obj = (data);
console.log(obj);
var test = (data["0"].description)
console.log(test);
});
});
Whatever I do it seems the console.log result of my test variable is 'Undefined'.