title: Map JSON data and put it into an array in Swift
body: <p>I have the following problem.</p>
  
  <p>I use Alamofire request. The response is a JSON.</p>
  
  <pre><code>        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))")
          }
      }
  </code></pre>
  
  <p>The result of the koJSON is the following:</p>
  
  <pre><code>{ "members": [ {"name": "Sarah"}, {"name": "David"}, {"name": "Michael"} ] }
  </code></pre>
  
  <p>I want to create an Members array and put all of the data into it.
  The result should be the following </p>
  
  <p><code>Members = ["Sarah", "David", "Michael"]</code></p>