I have a soap request to a server which works successfully and return json data.
{"GetAccountResult":{"Header":{"Rquid":"D560BC95-24F2-F705-0585-7CCB38E37ECE","Status":{"StatusCode":"-4","Message":"Account not found","Details":null}},"Account":null}}
I would like to know how to access that in php and only print the Message? not the entire json results?
I have tried
$account = $client->GetAccount($arrParams);
$results = json_encode($account);
echo $results->Message;
But this still prints the full json object