Hi
i've a problem with JSON in python.
in fact if i try to execute this code, python gives me a sorted JSON string!!
values = {'profile' : 'testprofile',
'format': 'RSA_RC4_Sealed',
'enc_key' : base64.b64encode(chiave_da_inviare),
'request' : base64.b64encode(data)
}
values_json = json.dumps(values, sort_keys=False, separators=(',', ':'))
and this is the output:
{"profile":"testprofile","enc_key":"GBWo[...]NV6w==","request":"TFl[...]uYw==","format":"RSA_RC4_Sealed"}
as you can see i tried to use "sort_keys=False" but nothing changed.
how can i stop python sorting my JSON strings?
thanks!