I have some JSON data looking like this:
"Extras": {
"T01": "Value 1",
"T02": "Value 2",
"T03": "Value 3",
// etc.
}
I need each of these values in a list, and so I've tried this:
$.each(data.result, function(i){
$("#result").append('<li>'+data.result.Extras[]+'</li>');
});
Which obviously doesn't work, I just can't seem to figure out what to do. I've tried data.result.Extras with no luck (as I just get [object][Object]).
Any ideas what I can do to get all of the values in a list? Thanks!