[Solved] How to write nested dictionary in Swift 4 [closed]


then you can make a loop to make a dictionary that later will be appended to arrayDictionary

let array = [[String:Any]]()

for item in data {
 let dictionary = [String:Any]()
 dictionary["object1"] = item.id
 dictionary["object2"] = item.name
 dictionary["object3"] = item.address

 array.append(dictionary)
} 

2

solved How to write nested dictionary in Swift 4 [closed]