View Single Post
Old 02-06-2019, 09:22 PM   #10
wyoung
Junior Member
wyoung began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2019
Device: Voice Dream Reader
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.
wyoung is offline   Reply With Quote