I have the following json :
{"returnCode":0,"returnMessage":"SUCCESS","data":{"OrganizationName":"ABC inc."}}
I wrote the following code to parse the organization name. But it is not working.
$response = json_decode($server_output, true);
foreach($response['data'] as $item)
{
echo $item['OrganizationName'];
}