On 08/08/2019 21:18, Richard Musil wrote:
2) Use JSON decoder to decode it (hopefully without losing anything in the process) and 
then dump it into "normalized" form and compute the hash over this one. This 
has the risk of conversion error, but if I could avoid that risk by using a custom type 
which does not have such an error, it would be much easier and maintenable solution.

This is the part that everyone is saying JSON itself does not guarantee will work. You cannot, by its very nature, produce such a custom type.

--
Rhodri James *-* Kynesim Ltd
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/IH43GPQ26Q4MKT4A2OWDLSRCTICKDD3E/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to