http://json.org/ defines that JSON is built on two structures:
- A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
- An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence.
I couldn't find a way to make Alamofire work on a post request where the parameters are [Any], which is the format required by the endpoint I'm consuming.
The error message is actualy a bit deceiving because it states "Extra argument in 'method' call" while performing a Alamofire.request but the actual problem is that parameters value is non-conforming.