Can't decode JSON string in php

anencemania

New Member
I have the following JSON string, i try to decode with php json_decode but $postarrayis always NULL, can't work out why this is?Running on Debian 5.0 Linuxphp Client API version => 5.0.51aJson version 1.2.1\[code\] $json = '{\"json\":[{\"username\":\"1062576\",\"accountId\":\"45656565\"}]}'; $postarray = json_decode($json); print_r($postarray);\[/code\]Thanks
 
Back
Top