title: How to convert json data from alamofire to swift objects
body: <blockquote>
    <p>hi there im making a photo viewer app in swift using swift 1.1 in
    xcode 6.2</p>
    
    <p>i am a having trouble trying to convert json response from
    alamofire to swift objects.i have used swiftyjson library but it seems
    there is a compatibility issues.here is my model class</p>
  </blockquote>
  
  <pre><code>import Foundation
  
  struct Photo {
  
      var name: String
      var filename :String
      var notes: String
  }
  </code></pre>
  
  <blockquote>
    <p>here is my viewController</p>
  </blockquote>
  
  <pre><code>    import UIKit
  
      class ImageViewerTableViewController: UITableViewController {
      var photos = [Photo]()
  
          override func viewDidLoad() {
              super.viewDidLoad()
  
  Alamofire.request(.GET, "http://httpbin.org/get")
           .responseJSON { (_, _, JSON, _) in
  
           }
  
        }
  </code></pre>
  
  <p>how can i map json to swift objects in this situation </p>
  
  <p>thanks .</p>