Using SwiftyJSON
how would I parse the following JSON array into a Swift [String]
?
{
"array": ["one", "two", "three"]
}
I have tried this code, but it doesn't work for me:
for (index: String, obj: JSON) in json["array"] {
println(obj.stringValue)
}
What would be the best way to handle this? Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…