Salve sto cercando di leggere un file json ma esce sempre la pagina bianca senza testo, dove sto sbagliando
file json----------------------
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [16.41, 40.21, 646]
},
"properties": {
"meta": {
"updated_at": "2025-11-29",
"Paese": {
"localita": "Roma",
}
},
---------------------------------
file di lettura php
$url = "filejson.json";
$contents = file_get_contents($url);
$dati = json_decode($contents);
foreach($dati->list as $data) {
echo $update= $dati->properties->meta->updated_at;
}

LinkBack URL
About LinkBacks
