9 Aug
2019
9 Aug
'19
8:05 a.m.
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