I'm new In Swift anyone help me.
I want to pass array of object to Alamofire and I don't know how to do that
Here is the parameter that required:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZWU4OGZiNzhiYTBkMjMyZDFmYWZkMzgiLCJpYXQiOjE1OTIyOTk2Njh9.AVuxiTZy10fV2ZMZcT-oHXSg6PdK3tfE",
"zipCodes": [
{
"zip_code": "55001",
"city": "Afton",
"state": "MN",
"county": "Washington"
}
]
}
And I do that
let parameters : [String : String] = ["token" : retrivedToken, "zipCodes" : [{
"zip_code": "55001",
"city": "Afton",
"state": "MN",
"county": "Washington"
}]
]