
Originally Posted by
Calljj
Changing code to
Code:
.fail( function(jqXHR,textStatus,errorThrown) {
alert(errorThrown);
gives:
SyntaxError: JSON.parse: unexpected character at line 2 column 1 of the JSON data
then showing the JSON gives:
Code:
{"XML":"securityToken=468ca6253914efa9633b14fdd8368a21&id[1]=2&id[2]=97&id[32]=292&cart_quantity=1&products_id=8902&pspClass=productGeneral&stat=main&outputType=XML","JSON":{"securityToken":"468ca6253914efa9633b14fdd8368a21","id[1]":"2","id[2]":"97","id[32]":"292","cart_quantity":"1","products_id":"8902","pspClass":"productGeneral","stat":"main","outputType":"JSON"}}