How to translate from StdObject?

Send a request using curl class this and get the result:

object(stdClass)#10 (1) { ["tested"]=> bool(false) }


The query itself looks like this:
$curl->get("http://test.ru");
See objedct, any ideas how to translate this into json usual, something can't catch up.

Here is what I want to eventually get:
{"tested":false}
April 4th 20 at 00:30
1 answer
April 4th 20 at 00:32
json_encode(stdObject);
@clarissa25 hmm, the result works, but not getting what I wanted))

I used to do$result = curl_exec($ch);
$test = json_decode($result, true);
var_dump($test["tested"]);
thus, I turned to false

Can be prompt how in this case can I do it?) - lupe_Howell commented on April 4th 20 at 00:35

Find more questions by tags PHP