I have been trying to login for a while using php but I have a final bug that stops me from finishing. It turns out to give a bug in NSJSONSerialization where the error tells me: error extra argument in call. Then I will provide a screenshot so that the error is clearer and the code so you can help me since I am in a blocking moment and I do not know how to solve it. Thanks in advance
Photo error: [ Code:
@IBAction func loginButtonTapped(sender: AnyObject) {
    let userEmail = userEmailTextField.text;
    let userPassword = userPasswordTextField.text;
    if(userEmail!.isEmpty || userPassword!.isEmpty) { return; }
    let myUrl = NSURL(string: "http://localhost/billapp/userSignIn.php");
    let request = NSMutableURLRequest(URL:myUrl!);
    request.HTTPMethod = "POST";
    let postString = "userEmail=\(userEmail)&userPassword=\(userPassword)";
    request.HTTPBody = postString.dataUsingEncoding(NSUTF8StringEncoding);
    let task = NSURLSession.sharedSession().dataTaskWithRequest(request){
        data, response, error in
        if error != nil{
            print("error=\(error)")
            return
        }
        var err: NSError?
        var json = NSJSONSerialization.JSONObjectWithData(data, options: .MutableContainers, error:NSError) as? NSDictionary
        if let parseJSON = json {
            var resultValue:String = parseJSON["status"] as String!;
            print("result: \(resultValue)")
            if(resultValue=="Success")
            {
                NSUserDefaults.standardUserDefaults().setBool(true, forKey: "isUserLoggedIn");
                NSUserDefaults.standardUserDefaults().synchronize();
                self.dismissViewControllerAnimated(true, completion: nil);
            }
        }
    }
    task.resume()
}
 
     
    