title: Swift 3 Alamofire print JSON body send to server
body: <p>I use Alamofire to send requests in my iOS App. For debugging, i want to see what the JSON Body looks like in raw. I expect it to look like:</p>
  
  <pre><code>{"receiverUserGroups":["testgroup"],"message":"testmessage"}
  </code></pre>
  
  <p>But I have not found a way to print it out in that format. I simply define the header and the params and make a request.</p>
  
  <pre><code>let headers: HTTPHeaders = [
          "sid": sid,
          "Content-Type": "application/json"
      ]
  
  var params = [
          "receiverUserGroups":[""],
          "message": "testmessage"] as [String : Any]
  params["receiverUserGroups"] = group
  
  Alamofire.request(urlString, method: .post, parameters: params, encoding: JSONEncoding.default, headers: headers)
  </code></pre>
  
  <p>Is there a way to see what i am sending to the server? Thank you in advance!</p>