title: Covert 3 levels nested json to Alamofire parameters
body: <p>I have a really complex json need to send my API with Alamofire like this </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    "usernme": "test",
    "roastData": {
      "temps": [
      {"timing": 1, "state":1, "temp": 100},
      {"timing": 2, "state":1, "temp": 101},
      ]
    }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>for sending it, need to convert this json to type as[String: AnyObject].</p>
  
  <p>it should become</p>
  
  <pre><code>["usernme": "test",
   "roastData": [
      "temps": [
        ["timing": 1, "state":1, "temp": 100],
        ["timing": 2, "state":1, "temp": 101],
      ]
      "date": "someDateHere"
    ]
  ]
  </code></pre>
  
  <p>How can I convert it?</p>