parseerror when returning jsonp: jQuery

Your json needs to be wrapped so that it can be executed upon return to the Javascript:

echo $_GET["callback"].'('.json_encode($response).')';

Leave a Reply

Your email address will not be published. Required fields are marked *