Full Form of JSON
JavaScript Object Notation
Full Form of JSONP
JavaScript Object Notation with Padding.
Json is stardard format that is human readable used to transmit information from one server to another server.
Jsonp is a json with ability to transmit information to another domain.
JSONP is JSON with padding, that is, you put a string at the beginning and a pair of parenthesis around it.
JSON Example
JSONP Example - In this you can call a function
With JSON you can't send request to another domain whereas JSONP is really a simply trick to overcome XMLHttpRequest same domain policy. In JSONP you can send request to a different domain.)
Demo with JSONP
JavaScript Object Notation
Full Form of JSONP
JavaScript Object Notation with Padding.
Json is stardard format that is human readable used to transmit information from one server to another server.
Jsonp is a json with ability to transmit information to another domain.
JSONP is JSON with padding, that is, you put a string at the beginning and a pair of parenthesis around it.
JSON Example
{"Name": "Foo", "Id": 1234, "Rank": 7};
JSONP Example - In this you can call a function
functionCall({"Name": "Foo", "Id": 1234, "Rank": 7});
With JSON you can't send request to another domain whereas JSONP is really a simply trick to overcome XMLHttpRequest same domain policy. In JSONP you can send request to a different domain.)
Demo with JSONP