I written a php code where it will echo a json string like this
[quote:2f689uul]"{""c2array"":true,""size"":[3,1,1],""data"":[[[""user""]],[[100]],[[999]]]}"
My PHP code looks like this
<?php header('Access-Control-Allow-Origin: *');
header('Content-Typer:application/json');
$username ="user";
$chips ="100";
$token ="999";
echo "\"{\"\"c2array\"\":true,\"\"size\"\":[3,1,1],\"\"data\"\":[[[\"\"".$username."\"\"]],[[".$chips."]],[[".$token."]]]}\"
";
?>[/code:2f689uul]
I requested with ajax to my URL
and then on complete I set array to load Json string from Ajax.LastData.
When I check it nothing happen to my array.
Help please