$('document').ready(function(){ $.get("/info", function( data ) { var text = "" $.each(data, function(i, obj) { text += ""; }); text += "
"+i+" "+obj+"
" $( "#info" ).html( text ); }); })