Not sure how to build a String in swift apparently. I'd like to send
action=category&data={"id":2,"type":"sheet"}
as a parameterstring in a request. in XCode I've build it like this:
let actionstring = "\"id\":2,\"type\":\"sheet\""
parameters: ["action": "category", "data": actionstring]
If I do a print(actionstring) I get exactly what I want, but when I send the request it looks like this:
action=category&data=%22id%22%3A2%2C%22type%22%3A%22sheet%22