username; $id=$payload->id; $rawBody = file_get_contents('php://input'); $data = json_decode($rawBody, true); if($data===null) die("Kein Body übertragen"); var_dump($data);