title: Alamofire sending object as parameter
body: <p>I'm having hard time doing something simple. The data I want to send is the following:</p>
  
  <pre><code>  {
      "nickname":"Rado",
      "social": {
        "data: { 
          "accesstoken":"xx",
          "applicationId":"xx",
          "userId":"xx"
        },
        "type":"whatever"
      }
    }
  </code></pre>
  
  <p>Currently I'm doing that:</p>
  
  <pre><code>           let params = [
                  "nickname": userName,
                  "social": [
                      "type": "whatever",
                      "data": [
                          "userId": accessToken.userID,
                          "accesstoken": accessToken.tokenString,
                          "applicationId": accessToken.appID
                      ]
                  ]
              ]
  
   Alamofire.request(.POST, "url/users", parameters: params, headers: nil)
                  .responseJSON { response in
  </code></pre>
  
  <p>}</p>
  
  <p>As a response I get this:</p>
  
  <pre><code>{
   "nickname":"Rado",
   "social[data][userId]":"xx",
   "social[data][applicationId]":"xx",
   "social[data][accesstoken]":"xx",
   "social[type]":"something"
  }
  </code></pre>
  
  <p>Any advice will be appreciated! </p>