\r\n"; //get last json error as an integer. if not 0, you have an error. $result = $array["data"]["object"]["customer"]; echo $result; ?>