Konversi JSON ke Pyhon X-WWW-Form-Burlencoded Pyhon

from urllib.parse import urlencode
keys_values =  {'foo': 1, 'bar': 2}
result = urlencode(keys_values)

print(result) 
# output: 'foo=1&bar=2'
Matheus Borba