I have this URL:
http://example.com?variable=1&variable=2&a=text
I want to transform those values to JSON.
I have tried:
data = json.dumps(request.GET)
But I get {"variable": "2", "a": "text"}
It seems to work for single values but not for multiple ones.
How can I get all the values from the URL transformed?