<?php
$request = file_get_contents('php://input');
$array = json_decode($request,true);
echo json_last_error()."<br>\r\n"; //get last json error as an integer. if not 0, you have an error.
$result = $array["data"]["object"]["customer"];
echo $result;
?>