What is JSON-P and how do you pronounce it?

Possible duplicate:
Please explain JSONP

Related question: Explanation and use of JSONP .

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

How do you pronounce JSON-P?

+4
source share
5 answers

JSONP or "JSON with the addition"

This helps to capture JSON from external domains. Its all about a cleaner way of getting data objects (and other things) from an external domain. Its a workaround for cross JavaScript issues. JQuery is also supported.

Technical details

+6
source

How do I pronounce it? Jason pee

+30
source

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 the addition "is a JSON extension in which the prefix specified as an input argument call itself. This optional prefix is ​​usually the name of a function callback, but it can also be an assignment variable, an if statement, or any other Javascript instruction prefix. it appears to have been made on a MacPython blog in 2005 [16] and is now used by many 2.0 websites, such as Dojo Toolkits, Google Toolkit Applications [17] and web services. Further extensions to this protocol have been proposed by considering additional additional input arguments such as, for example, this is the case of JSONPP [18] supported by S3DB web services. Since JSONP uses script tags, calls are essentially open to the world. For this reason, JSONP may not be practical to transfer sensitive data. [19] Enabling script tags from deleted "sites allow remote sites to add any content to a website. If remote sites have vulnerabilities that allow JavaScript injection, the original site can also be affected."

+3
source

See the Douglas Crockfords JSON Saga for a different pronunciation for JSON at around 7:45 a.m.

+1
source

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.

0
source

All Articles