Actually, while the other answers are good, JSON-P does not require the use of JSON. You can use any data format you like if it follows the same idea as JSON-P. It refers more to the process of submitting a callback to the server, which will be used in JavaScript code that is returned in response.
source share