[jQuery] Looping through getJSON data
I am returning data from the .getJSON() function and trying to write
is all out in the body. But, for some reason this is not working at
all. What have I done wrong?
$.getJSON(api_url, params,
function(data, texStatus) {
// Check our array
for (i=0;i<data.length; ++i) {
$('body').append(data[i]);
}
}
);