$.ajax({ type: "GET", url: "data.json", dataType: 'json', success: function (data) { $('body').append(arrayToTable(data)); } });