I have an incredibly long array and string I want to send through Alamofire though I don't know how I would send raw JSON as a parameter. The JSON looks a little like
{
"skus":["8865594-CS,4387296-CS,1175540-CS...."],
"listType": "H"
}
Instead of getting that to behave like a Swift array and then serializing, is there a way I can pass this JSON as a parameter in Alamofire?
Thanks!
Edit:
I was able to pull a bit of magic in a text editor to get the params formatted in the style of a Swift array (as in var skus = ["abc", ...]
) so I made the skus
and listType
into a Dictionary, per Eric's advice. This worked well enough except that I get a status code: 414, meaning the URL is too long.