title: Alamofire request with SwiftyJSON parameters
body: <p>I would like to know how I can put a SwiftyJSON array into my parameters for the Alamofire request.</p>
  
  <p>Actually I use this code (Swift 3) to setup the parameters for the request:</p>
  
  <pre>let params = ["customObjects": customObjects.map({$0.toJSON()})]</pre>
  
  <p>...but this fires an exception if I try to start the request:</p>
  
  <pre>uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (_SwiftValue)'</pre>
  
  <p>The "customObjects" are an array of my custom model class.</p>
  
  <p>If you need any more information let me know.</p>