파이썬 Python에서 JSON 출력 정렬
파이썬에서 JSON에 문제가 있습니다. 사실,이 코드를 실행하려고하면 파이썬이 정렬 된 JSON 문자열을 제공합니다! 예를 들면 : 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 = (',', ':')) 그리고 이것은 출력입니다. { "profile": "testprofile", "enc_key": "GBWo[...]NV6w==", "request": "TFl[...]uYw==..
2020. 12. 3.