Friends can help me with this? My code returns this warning:

Notice: Trying to get property of non-object in C:\xampp\htdocs\bla.php on line 9

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\bla.php on line 9

My code:

PHP Code:
$jsonurl "http://ws.audioscrobbler.com/2.0/?method=artist.gettopalbums&artist=cher&api_key=0d4420f96a7c0276c33b20fb5896f768&format=json";
$json file_get_contents($jsonurl,0,null,null);
$json_saida json_decode($jsontrue);
    
//print_r($json_saida);
    
foreach($json_saida->topalbums as $dados)
{
        
    echo 
$dados->name;