I have a python dict containing a list, for example:
d = {"x": 1, "y": ["a", "b", "c"]}
I want to send this dict with a POST from my python project using the requests lib like this:
requests.post(url, d, verify=False)
I manage to send and recieve the request fine but the problem is that when I'm printing the request.POST dict in my Django view it looks like this:
{"y": "c", "x": "1"}
The y key containing the list doesn't look as expected as the list has been reduced to just the last object of the list, in this case "c". How do I send the list properly?