title: post JSON object with a dictionary and an array of dictionaries using alamofire
body: <p>I'm trying to post an object like so:</p>
  
  <pre><code>{
    "simulation" : { },
    "simOptions" : [
      { },
      { }
    ]
  }
  </code></pre>
  
  <p>and tried posting it by calling my SimulationRepository class:</p>
  
  <pre><code>SimulationsRepository().confirmSimulation(params: parameters) { (response) in
    if let error = checkError(response) {
      self.hideLoading()
      self.showAlert(error)
      return
    }
  
    guard let simsArray = SimulacaoArray(responseObject: response.result.value) else {        
      let error = response.error.debugDescription      
      self.hideLoading()
      self.showAlert(error)        
      return
    }
  
    print(simsArray.simulation.count)
  }
  </code></pre>
  
  <p>I've tried the solutions here <a href="https://stackoverflow.com/questions/27026916/sending-json-array-via-alamofire/27027253#27027253">Sending json array via Alamofire</a> and here <a href="https://stackoverflow.com/questions/36204198/alamofire-send-json-with-array-of-dictionaries">Alamofire: Send JSON with Array of Dictionaries</a>, but can't get the array of dictionaries to be converted properly.</p>