I have a string that looks like this:
"buyer=Bob&seller=Jan&id_a=234"
I want to convert this to the dictionary:
{"buyer":"Bob", "seller":"Jan", "id_a":234}
HOWEVER, this string can come in any order, so it can also look like this "seller=Jan&buyer=Bob&id_a=234". This of course, should still result in the same dictionary.
How can I do this easily in python? I was using .split() at first, but when I realized that there are multiple possible orderings, I would have to create a super messy solution to accommodate this. Any ideas?