JSON (Json with Padding) complements in the existing capability of Enterprise Tester API methods to return JSON. I provides a method to request data from the server where CORS is not a viable alternative.
To make a JSONP request you pass an additional query parameter as part of the url with the name "callback", the value of which is the name of the callback function to invoke:
If we make a request as follows:
Then we can see in the response, that it's wrapped in a call to the function processResponse:
JSONP requests are only support for GET HTTP methods.