P & how do you pronounce it?

Possible Duplicate:
Please explain JSONP

Related question: Explanation and usage of JSONP.

I know what JSON is but what is JSON-P?

How do you pronounce JSON-P?


JSONP or "JSON with padding"

It helps grabbing JSON from external domains. It's all about a cleaner way to get data objects (and other things) from the external domain. Its a workaround for cross domain JavaScript issues. Also supported by jQuery.

Technical details


How do I pronounce it? Jayson Pee.


JSON-P = JSON with Padding

http://ajaxian.com/archives/jsonp-json-with-padding

http://en.wikipedia.org/wiki/JSON#JSONP

From Wikipedia:

"JSONP or "JSON with padding" is a JSON extension wherein a prefix is specified as an input argument of the call itself. This padding prefix is typically the name of a callback function, but may also be a variable assignment, an if statement, or any other Javascript statement prefix. The original proposition appears to have been made in the MacPython blog in 2005 [16] and is now used by many Web 2.0 applications such as Dojo Toolkit Applications, Google Toolkit Applications[17] and Web Services. Further extensions of this protocol have been proposed by considering additional input arguments as, for example, is the case of JSONPP[18] supported by S3DB web services. Because JSONP makes use of script tags, calls are essentially open to the world. For that reason, JSONP may be inappropriate to carry sensitive data.[19] Including script tags from remote sites allows the remote sites to inject any content into a website. If the remote sites have vulnerabilities that allow JavaScript injectio n, the original site can also be affected."

链接地址: http://www.djcxy.com/p/8344.html

上一篇: Angular 2 JSONP,注入脚本没有调用回调

下一篇: P&你如何发音?