// customer-result.php $json = json_decode($HTTP_RAW_POST_DATA); $result = "post " . count($json) . " customers : "; foreach($json as $customer) { $result = $result . $customer->ContactName . ", "; } echo "".$result."";