title: How to send form-data body with Alamofire
body: <p>I want to make a request wit Alamofire like this:
  <a href="https://i.stack.imgur.com/iETs9.png" rel="nofollow noreferrer">postman request</a></p>
  
  <p>As you can see, i have a parameter called "data" and its value is a Json, </p>
  
  <p>How can i do that using Alamofire?</p>
  
  <p>I have tried with parameters, but doesnt wotk</p>
  
  <pre><code>Alamofire.request(urlservice, method: .post, parameters: ["data": parameters], encoding: JSONEncoding.default, headers: nil).responseJSON { response in
  </code></pre>
  
  <p>Any suggestions?</p>
  
  <p><strong>UPDATE</strong>
  Here is my code</p>
  
  <pre><code>var arrayProducts = [[String: String]]()
  
      let product: [String: String] = ["qty": self.txtQty.text!, "precio": self.productPrice, "product_id": self.productId]
  
      arrayProducts.append(product)
  
      let parameters = [
          "products": arrayProducts,
          "address": self.userInfo["userAddress"]!,
          "latitude": "6.157738",
          "longitude": "-75.6144665",
          "id": 1,
          "name": self.userInfo["userName"]!,
          "cellphone": self.userInfo["userPhone"]!,
          "emei": "23456resdfty"
          ] as [String : Any]
  
   Alamofire.request(urlservice, method: .post, parameters: ["data": parameters], encoding: JSONEncoding.default, headers: nil).responseJSON { response in
  </code></pre>