I send form by post, and response will be a json encode
this return controller
$msg = ["tipo" => 'danger',
"icon" => 'fa fa-times',
"msg" => 'Email no encontrado.'];
return $this->response->setJSON($msg);
but retrivied and string
i using codeigniter 4.1.1