Sometimes you want to produce a canonical version of a data
structure in JSON - with keys sorted and no additional
JSON::XS promises us that we can achieve such result
canonical option. It only notes that canonicalization
doesn’t work for tied hashes. But I’ve just spent half a day
debugging to learn that this is a bit more complicated.