Got the simplified array working see below
Following up on the complicated array to parse see here.
TLDR: Want to get each heading fro
$.getJSON(url,
function(data){
$.each(data.items, function(i,item){
$('#testfield').html('' + item.d.title + '
');
});
});
In this code you're going to end up replacing the HTML of the item with ID of 'testfield' with the value over and over ... you might want to try using jQuery.append to add all entries as you've specified above
$.getJSON(url,
function(data){
$.each(data.items, function(i,item){
$('#testfield').append('' + item.d.title + '
');
});
});