Using SwiftyJSON how would I parse the following JSON array into a Swift [String]?
SwiftyJSON
Swift [String]
{ \"array\": [\"one\", \"two\", \"three\"] }
You have a Dictionary which holds an Array which holds Strings. When you access a value in the Dictionary, it returns a simple Array of Strings. You iterate it like you would any array.
Dictionary
Array
String
for obj in json["array"] { println(obj.stringValue) }