$data = json_decode($request->getContent(), true); $form->submit($data); if ($form->isValid()) { // and so on… }