title: Parse JSONArray contains JSONObjects Swift
body: <p>hello i'm new to swift and I have responseJson from alamofire consist of jsonArray contain jsonObjects like this </p>
  
  <pre><code>[{"id":"1","name":"person1"},{"id":"2","name":"person2"}]
  </code></pre>
  
  <p>how i can parse it into array of this custom model</p>
  
  <pre><code>class Person {
    var name : String
    var id : String
  }
  </code></pre>
  
  <p>i've done a much searching but can't find case identical to mine and i can't use Codable because i'm using xcode 8 and not able to upgrade my xcode version to 9 now </p>
  
  <p>I'm getting the response like this </p>
  
  <pre><code>Alamofire.request(url).responseJSON{ response in
              if(response.result.isSuccess)
              {
                  if let jsonarray = response.result.value as? [[String: Any]] 
                      {
                        //what to do here ?
                      }
              }
          }
  </code></pre>