{
"myArray": ["one", "two", "three"]
}
Using SwiftyJSON, you can get an array of JSON objects with:
var jsonArr:[JSON] = JSON["myArray"].arrayValue
Functional programming then makes it easy for you to convert to a [String] using the ‘map’ function. SwiftyJson let’s you cast string type with subscript ‘.string’
var stringArr:[String] = JSON["myArray"].arrayValue.map { $0.stringValue}