I am developing a project to learn how to parse JSON. I am trying to parse JSON to a struct. I am trying to do it using the code that come
Try this
let gitData = try decoder.decode(Root.self, from: data!)
Traverse through your data
for singleData in gitData.data where (singleData.name ?? "") == "Cafe" { print(singleData.image) }