I have the following problem.
I use Alamofire request. The response is a JSON.
Alamofire.request(url, method: .get).responseJSON {
response in
if response.result.isSuccess {
print("Success! Got the korosztaly data")
let koJSON : JSON = JSON(response.result.value!)
print(koJSON)
}
else {
print("Error \(String(describing: response.result.error))")
}
}
The result of the koJSON is the following:
{ "members": [ {"name": "Sarah"}, {"name": "David"}, {"name": "Michael"} ] }
I want to create an Members array and put all of the data into it. The result should be the following
Members = ["Sarah", "David", "Michael"]