I have the following JSON line, I'm trying to decode using php json_decode, but $ postarray is always NULL, can't understand why this is?
Running on Debian 5.0 Linux Client API version php => 5.0.51a Json version 1.2.1
$json = '{\"json\":[{\"username\":\"1062576\",\"accountId\":\"45656565\"}]}';
$postarray = json_decode($json);
print_r($postarray);
thank
source
share