let arr = value as? [ [String : Any] ]
for obj in arr {
if let email = obj["email"] as? String {
//do something
print(email)
}
}
if let arr = value as? [Any] {
for el in arr {
if let obj = el as? [String : Any], let email = obj["email"] as? String {
//do something
print(email)
}
}
}