Here is my code
var api = "http://199.175.xx.xxx:3000?jsoncallback=?";
$.getJSON( api, {}).done(function( data ) {
alert('h');
});
but alert is never happening. I can see from network tab in inspector that request is being sent successfully and also response is the correct one but why alert is not firing inside done callback?
here is the inspector result

jsoncallbackparameter to add the callback name to the response?dataparameter in$.getJSONis optional. You don't need to pass{}, you can just do ` $.getJSON(api)`.callback({"your": "data"}). Also, is it your API or is it a third-party one? Are you sure it should bejsoncallback=??jsoncallbackparameter in the response, like it's supposed to. Did you create this URL, or is it a third-party API?