$.ajax({ url: "http://dummy.restapiexample.com/api/v1/employees", type: 'GET', dataType: 'json', success: function(contentData) { console.log(contentData); // alert(res); } });