I made a request and in the result brought $ result. But I wanted to access inside the string as an object and this error appears. I saw similar errors in other questions, but it was not clear to me.
echo $result;
echo "<br>";
echo var_dump($result);
echo "<br>";
echo json_decode($result);
{"response":{"dsLOGIN":{"dsLOGIN":{}}}} string(39) "{"response":{"dsLOGIN":{"dsLOGIN":{}}}}"
Error:
Catchable fatal error: Object of class stdClass could not be converted to string in