I have a json file and i need a loop for echo the contnent for each id value
like this:
{
"dati": [
{
"id": 96984,
"sottotitolo": "test sottotitolo",
"img": "https://sdsds.com",
"url": "asdsa.com",
"stato": "IT",
"regione": "IT.08",
}
{
"id": 24543,
"sottotitolo": "test sottotitolo2",
"img": "https://sdsds.com",
"url": "asdsa.com",
"stato": "IT",
"regione": "IT.08",
}
]
}
to something like this:
<div id"96984"> <h3>test sottotitolo</h3> ......... </div> <div id"24543"> <h3>test sottotitolo2</h3> ......... </div>