My JSON is:
[
{
"a": "1",
"b": "2"
}
]
let parameters: Parameters = [
<here goes the JSON>
]
Alamofire.request(URL, method: .put, parameters: parameters, encoding: JSONEncoding.default, headers: headers).validate().responseJSON
I know that the parameters are a dictionary of [String:AnyObject] but I need to pass it like in my first JSON
And I need to send this as the parameter, but I think I can only send an [String: AnyObject], or at least thats how the example works in the Alamofire migration guide, so my question is how to achieve this? I'm using Alamofire 4