$.getJSON("https://url", function(data){ console.log(data); $("#div1").html(data); });