My API returns a JSON that I would like to transform into a PHP object so that I can find a specific field in return. how can I do this? My get public function teste() { $requestUrl='http://XXXXXX:XXX/api/login'; $users = array("wts-authorization: XXX/XXx","content-type: application/json","accept: application/json"); $ch = curl_init($requestUrl); curl_setopt($ch, CURLOPT_HTTPHEADER, $users); $obj […]