Incidentally, if there's a setting one of the developers of Calibre can enable that will sort the keys of the JSON settings objects, that'd make it a lot easier to do this sort of settings directory diffing.
I get that JSON is based on Python dictionaries, and nodes are stored in the dictionary in a semi-unpredictable order, but it's an option in some JSON serialization libraries to sort the keys for this very sort of reason. Perl's JSON module calls this "canonical form", for instance.
|