As you discovered. json_decode returns objects instead of an array by default. I think pretty much everyone has been surprised by this. Just set the second parameter to true to get an array.
$values = json_decode($jsonString,true);
print_r($values);