title: Alamofire and SwiftyJSON for Swift 2.0
body: <p>I am updating my code for Swift 2.0 for today, however the line</p>
  
  <p><code>var json = JSON(json)</code> gives me the following error</p>
  
  <blockquote>
    <p>Cannot invoke intializer for type 'JSON' with an argument list of type
    (Result)</p>
  </blockquote>
  
  <p>Do you guys have any idea how should I change my code?</p>
  
  <pre><code>@IBAction func changePassword(sender: UIBarButtonItem) {
      Alamofire.request(.POST, AppDelegate.kbaseUrl + "users/me/password", parameters: ["old_password": self.oldPasswordTextField.text!, "new_password": self.newPasswordTextField.text!, "confirm_password": self.confirmPasswordTextField.text!], encoding: .JSON)
          .responseJSON {
              (req, res, json) in
              var json = JSON(json)
              if json["meta"]["status"]["code"] == 200 {
                  self.navigationController?.popViewControllerAnimated(true)
              }
              let alert = UIAlertView(title: json["meta"]["msg"]["subj"].stringValue, message: json["meta"]["msg"]["body"].stringValue, delegate: nil, cancelButtonTitle: "Close")
              alert.show()
      }
  }
  </code></pre>