J'ai une donnée JSON avec structure et je ne sais pas comment utiliser la boucle for avec SwiftyJSON pour obtenir les entrées de chaque section de la valeur "path" et "updated". Quelqu'un peut-il aider? Merci.Comment faire une boucle sur les données JSON dans SwiftyJSON
var jsonData = "{
"css":[
{
"path": "style.css",
"updated": "12432"
},
{
"path": "base.css",
"updated": "34627"
},
],
"html":[
{
"path": "home.htm",
"updated": "3223"
},
{
"path": "about",
"updated": "3987"
}
]
}
"
J'ai essayé de coder une partie de boucle for
let json = JSON(jsonData)
for () in json {
let filepath =
let updated =
// do searching another json to found file exists and updates
}