I have a JSON String like this
$test=\'{\"var1\":null,\"var3\":null,\"status\":{\"code\":150,\"message\":\"blah blah\"}}\';
I want to access th
Not sure what you're jsonService is doing but this worked for me:
$json = '{"var1":null,"var3":null,"status":{"code":150,"message":"blah blah"}}'; $result = json_decode($json); echo $result->status->code;