php avoid nested in json_decode code example
Example: decode a nested JSON with php
foreach($json as $elem) {
echo( $elem['name']." - ".$elem['favourite']['colour'] );
echo("<br/>");
}
foreach($json as $elem) {
echo( $elem['name']." - ".$elem['favourite']['colour'] );
echo("<br/>");
}