JSON Escape Special Characters
Use \' for you quotation into your text.
See this list of special character used in JSON :
[REF] how-to-escape-special-characters-in-building-a-json-string
\b Backspace (ascii code 08)
\f Form feed (ascii code 0C)
\n New line
\r Carriage return
\t Tab
\v Vertical tab
\' Apostrophe or single quote
\" Double quote
\\ Backslash character
JSONP
- JSONP is only for
GET, though, notPOST - http://stackoverflow.com/questions/6809053/simple-jquery-php-and-jsonp-example
- Basically, Server Side: need to return something like "CallbackFunctionName({'data': 'value'})"
- Client Side: type is JSONP, add ?callback=CallbackFunctionName to the GET request
- http://stackoverflow.com/questions/6396623/jquery-getjson-access-control-allow-origin-issue
- Basically it's related with some HTTP Headers:
Access-Control-Request-xxx
- JSON Viewer by Eyal Post