title: Swift 4 Codable Array's
body: <p>So I have an API route that returns a JSON array of objects. For example:</p>
  
  <pre><code>[
      {"firstname": "Tom", "lastname": "Smith", "age": 31},
      {"firstname": "Bob", "lastname": "Smith", "age": 28}
  ]
  </code></pre>
  
  <p>I'm trying to envision how to use the new codable feature in Swift for to convert those into two objects in a class. So if I have a person class that is codable I would want to take that response and have it give me two person objects.</p>
  
  <p>I'm also using Alamofire to handle the requests.</p>
  
  <p>How can I do this? So far everything I've seen related to the codable stuff only allows 1 object. And I haven't seen any integration with Alamofire or a web framework.</p>