parsing JSONP $http.jsonp() response in angular.js
UPDATE: since Angular 1.6 You can no longer use the JSON_CALLBACK string as a placeholder for specifying where the callback parameter value should go You must now define the callback like so: $http.jsonp(‘some/trusted/url’, {jsonpCallbackParam: ‘callback’}) Change/access/declare param via $http.defaults.jsonpCallbackParam, defaults to callback Note: You must also make sure your URL is added to the trusted/whitelist: $sceDelegateProvider.resourceUrlWhitelist or … Read more