Ajax, REST, chunked response
HTML
<div id="output"></div>
JavaScript
$(function() {
$.ajax('http://www.gentlesite.be/drupal/api/nodes', {
success: function(data) {
$('#output').text(data);
},
error: function(jqXHR, textStatus, errorThrown) {
$('#output').text(textStatus + "; " + errorThrown);
}
});
});