This is my JSON object:
<pre>
stdClass Object
(
[user] => stdClass Object
(
[name] => Bob Smith
[age] => 47
)
[0] => CEO
[1] => USA
)
</pre>
How to read these last two output:
[0] => CEO<br/>
[1] => USA<br/>
like I am reading this:
<pre>
$res = json_decode($json_data);
echo $res->user->name; //out : Bob Smith
</pre>