simple REST call from Javascript simple REST call from Javascript json json

simple REST call from Javascript


I hope this should work:

$.ajax({    type: "GET",    dataType: "jsonp",    url: "http://diningphilospher.azurewebsites.net/api/dining/",    success: function (data)     {        alert(data);    }});

Or just add/append ?callback=? along with your cross-domain url.