$.ajax({ type: 'GET', url: 'data/simpleMenu.json', dataType: 'JSON', success: function(data) { document.getElementById("output").innerHTML = data.menu; }, fail: function(error) { console.error("Error: " + error) document.getElementById("output").innerHTML = error; } })