var url = peeringdb_api_url + '/' + $scope.getJSONParam1 + '/' + $scope.getJSONParam2;
url = url + '?callback=JSON_CALLBACK';
console.log('url = "' + url + '"');
$http.jsonp(url, config)
.then(function successCallback(response) {
console.log('successCallback() called');
$scope.getCallJSONResult = logResult("GET SUCCESS", response.data, response.status, response.statusText, response.headers, response.config);
}, function errorCallback(response) {
console.log('errorCallback() called');
$scope.getCallJSONResult = logResult("GET ERROR", response.data, response.status, response.statusText, response.headers, response.config);
});
};
Try that.