title: How to post JSON with Array of Dictionaries : Alamofire
body: <p>i want to post array of dictionaries in alamofire, but some how it is not posting.i can use many ways but still not find the proper answer on it. Showing error "Extra argument 'method' in call" . Here is my code.</p>
  
  <pre><code>let userToken: HTTPHeaders = [
          "Content-Type": "application/json"
      ]
  let parm = [
              [
                   "EmployeeID": id,
                   "Longitude":  longitude,
                   "Latitude":   latitude,
                   "GeoTime":    dateString,
                   "UserToken":  "g98XQdy8B}rQ7?Q"
              ]
            ]
  postAttandance(apiUrl: postAttandanceURL, parameter: parm , tiket: userToken){
          (done) -&gt; Void in
          if done{
  
          }
      }
  
  func postAttandance(apiUrl : String , parameter : [[String : Any]] ,  tiket : HTTPHeaders , completion : @escaping (_ done : Bool) -&gt; Void ){
      Alamofire.request(apiUrl, method : .post , parameters : parameter ,encoding : JSONEncoding.default,  headers : tiket).responseJSON { (response) in
          if response.result.isSuccess{
              let responsejson : JSON = JSON(response.result.value!)
              completion(true)
          }
      }
  }
  </code></pre>