Software updates are supposed to change the program, not your settings. Yet a familiar story goes like this: an update runs, and afterwards a limit you set is different, a feature you turned off is back on, or a value that used to be a number is now text and the program misreads it. The config file holds the truth, but the updated file only shows what the settings are now, not what they were or what changed.
The fix is a comparison. If you kept a copy of the config from before the update, a structural diff against the updated file lists every altered setting by path, with its old and new value, and nothing else. This guide shows how to do that with the free JSON Diff Checker on Ovatly, which runs in your browser, useful when the file contains values you would rather not upload.
Contents
- Quick answer
- Why updates change configs silently
- The habit that makes this possible: keep the before copy
- How to compare the two files, step by step
- Worked example: a settings file after an update
- The type change: the quiet breakage
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
To compare a config file before and after an update: take the copy you saved before updating, paste it on one side of the JSON Diff Checker, paste the updated file on the other side, and read the report. Every setting that was added, removed or changed appears by path with its old and new value. Settings that did not change do not appear at all, and differences in key order or formatting are ignored, so the report is exactly the list of what the update did to your configuration.
Why updates change configs silently
An update has legitimate reasons to touch a config file. New features need new settings, so keys get added with default values. Old settings are retired, so keys get removed. Formats get migrated, so a value is rewritten in a new shape. Most of this is harmless, and release notes rarely itemise it.
The trouble is the changes you did not ask for: a default that overwrites a value you had customised, or a migration that rewrites a number as a string. Nothing announces these. The program just behaves differently, and without a record of the old file you are left guessing which setting moved. A diff turns that guesswork into a list.
The habit that makes this possible: keep the before copy
Everything in this guide depends on one small habit: before you update, copy the config file somewhere safe with the date in the name. The copy costs seconds and a few kilobytes. Without it, the old values exist only in your memory, and a diff has nothing to compare against.
Keep the copy unchanged: do not tidy or reformat it. The diff ignores key order and formatting anyway. One copy per update builds a short history, and any later question about when a setting changed becomes a comparison between two dated copies.
How to compare the two files, step by step
- Find the copy you saved before the update, and the config file as it stands now.
- Open the JSON Diff Checker and paste the before copy on one side.
- Paste the current, updated file on the other side.
- Read the report path by path. Each entry is a setting that was added, removed or changed, with its old and new value.
- For every changed entry, decide: expected from the update, or a value you set that the update overwrote. Restore the ones you care about by editing the current file back to the old value.
- Keep both copies. The updated file is your new before copy for the next update.
Worked example: a settings file after an update
Say your saved copy of a small settings file looks like this:
{
"siteName": "Shop",
"itemsPerPage": 20,
"darkMode": false
}
After an update, the same file reads:
{
"siteName": "Shop",
"itemsPerPage": "20",
"darkMode": false,
"currency": "USD"
}
The diff report is two lines:
CHANGED itemsPerPage: 20 -> "20"
ADDED currency: "USD"
The second line is the update doing its job: a new currency setting appeared with a default. The first line is the one worth your attention. itemsPerPage still shows the value 20, and a quick glance at the file would pass it, but it is now the string "20" instead of the number 20. If the program does arithmetic with that setting or compares it strictly, it will misbehave, and this one line in the report is the difference between finding that in a minute and hunting for it all afternoon. Note what is not in the report: siteName and darkMode, because they did not change.
The type change: the quiet breakage
A changed value is easy to understand: 20 became 25, and the report shows both numbers. A type change is subtler. The value looks the same when you read the file, but its kind has changed: a number became a string, a boolean became a word, a single value became a list. Programs that read the config notice the difference even when your eyes do not.
The diff reports a type change as one changed entry for that path, with the old and new values shown together, rather than splitting it into a removal and an addition. That single line is exactly the flag you need. When you review an update, read the changed entries with type changes in mind: they best explain strange behaviour afterwards and are the hardest to spot by reading the file.
Limitations and honest tradeoffs
The diff compares the two files you give it. It cannot say whether a change came from the update, from another program, or from an edit someone made in between, and it cannot say whether a new default is good or bad. It also compares arrays by index, so if a list setting was reordered, the report shows the affected positions as changed rather than tracking each item to its new place.
If one of the files is not valid JSON, the tool names that side and produces no partial diff. With an updated config, that outcome is itself useful information: a file that does not parse is a file the application may fail to load. Finally, the tool reads JSON only. A config kept in another format has to be compared another way, or converted first.
Common mistakes
- Updating first, looking for the old file later. Once the file is overwritten, the before version is gone. Save the copy before you update, every time.
- Editing the saved copy. Reformatting is harmless to the diff, but changing a value in the copy destroys the record. Store it and leave it alone.
- Reading only the additions. New keys are the visible part of an update. The changed and removed entries are where your own settings get lost.
- Skimming past a type change. A value that looks identical may have changed kind. Treat each changed entry as a question, not a formality.
- Comparing the wrong pair. Two copies from different dates produce a report spanning several updates. Match the copy from immediately before this update.
FAQs
Why should I keep a copy of the config before an update? The diff needs two versions. The copy you saved is the only reliable record of what the settings were, and once an update has overwritten the file, the old values are gone unless you kept them.
What does a type change look like in the report? A type change is reported as one changed entry for that path, showing the old value and the new value together. A setting that was the number 20 and is now the string "20" appears as a single changed line, not as a removal plus an addition.
Can I compare config files whose keys are in a different order? Yes. The comparison is structural and matches values by path, so key order and formatting differences between the two files are ignored and never appear in the report.
What happens if the updated config is not valid JSON? The tool names the side that failed to parse and produces no partial diff. An invalid updated file is itself a finding: it means the update wrote a config the application may fail to read at all.
Is my config file uploaded to a server? No. The comparison runs fully in your browser, and the file never leaves your device. That matters for config files, which often contain keys, tokens or internal addresses.
Conclusion
An update's effect on your configuration does not have to be a mystery. Keep the before copy, diff it against the updated file with the JSON Diff Checker, and the report is a short, complete list of what changed, including the type changes that hide from a casual read. The same approach reviews changes in data you receive rather than files you own, which our companion guide on using a JSON diff to review API response changes covers. For more guides in this series, see our Data and JSON Tools guides.
References
- RFC 8259, The JavaScript Object Notation (JSON) Data Interchange Format: https://www.rfc-editor.org/rfc/rfc8259
- MDN Web Docs, on working with JSON: https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Scripting/JSON