Below is the example json code i am trying to parse using php.
{
"educations": {
"_total": 7
}
}
I tried it parsing using the following php code. But i am making some silly mistake which i am unable to find. Below is the PHP code
<?php
$decoded = json_decode($json_string)
echo "$decoded->educations->_total";
?>
but I am not getting some object error which i am unable to figure out.
The error is: Catchable fatal error: Object of class stdClass could not be converted to string
PLease help thanks.