A deploy finishes, the site comes back up, and something behaves differently. Maybe a feature you never touched is off, or a timeout feels longer than it used to. The settings file is the first suspect, but opening it tells you only what it says now, not what it said an hour ago. Reading two versions side by side in a text editor is slow, and a plain text diff drowns the real edits in moved lines and reordered keys.

The reliable method is boring and quick: keep a copy of the settings file from before the deploy, then compare it structurally with the file the deploy left behind. This guide shows how to do that with the free JSON Diff Checker on Ovatly, which runs in your browser and reports every difference by path.

Contents

  • Quick answer
  • Why a deploy can change more than you shipped
  • What the report shows: added, removed and changed
  • How to check a deploy, step by step
  • Worked example: one intended change, one surprise
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

Before the deploy, save a copy of the current settings file. After the deploy, paste the old file on one side of the JSON Diff Checker and the new file on the other. The report lists every added, removed and changed value by path, with the old and new values, so a setting the deploy changed without anyone meaning to is visible immediately. Key order is ignored, so reformatting alone reports nothing.

Why a deploy can change more than you shipped

Settings files rarely change only where you edited them. A deploy can regenerate the file from a template, merge in defaults for new options, or write values back in a different order. A colleague's change can ride along in the same release. None of that is visible if you only read the final file, because the final file looks deliberate even when part of it was an accident.

A before-and-after comparison separates intent from accident. You know which changes you meant to ship. Anything else in the report deserves a question before it deserves trust.

What the report shows: added, removed and changed

The comparison is structural: it walks both documents as data, not as text, and reports three kinds of difference, each with the path to the value and the old and new values where they apply.

  • Added: a path that exists only in the new file.
  • Removed: a path that exists only in the old file.
  • Changed: a path that exists in both, with a different value.

Here is the shape of a report, using a small person record:

{ "name": "Ana", "age": 31 }
{ "name": "Ana", "age": 32, "city": "Lisbon" }

The report reads: CHANGED age: 31 -> 32, and ADDED city: "Lisbon". Two details are worth knowing before you rely on it. A value that changes type, say from a number to a string, is reported as one changed entry, not as a removal plus an addition. And numbers that are equal in value count as equal: 1 and 1.0 are the same number here.

How to check a deploy, step by step

  1. Before deploying, copy the current settings file and save the copy somewhere the deploy cannot overwrite. A plain text file named with the date is enough.
  2. Deploy as usual, then take the settings file exactly as the deploy left it. Do not tidy it up first.
  3. Open the JSON Diff Checker and paste the before copy on one side and the after file on the other.
  4. Read the report top to bottom. Tick off each entry you expected. Investigate every entry you did not expect before you sign the deploy off.

Worked example: one intended change, one surprise

Suppose the deploy was supposed to do exactly one thing: raise a cache timeout. The before file:

{ "cacheMinutes": 30, "retries": 3, "theme": "light" }

The file after the deploy:

{ "cacheMinutes": 60, "retries": 3, "theme": "dark" }

The report shows two changes: CHANGED cacheMinutes: 30 -> 60, and CHANGED theme: "light" -> "dark". The first is the deploy doing its job. The second is the surprise: nobody asked for a theme change, yet the deployed file carries one, perhaps because the file was regenerated from a template with different defaults. Without the before copy, that second change would have shipped silently and surfaced later as a confusing bug report. With the diff, it takes ten seconds to spot and revert.

Limitations and honest tradeoffs

The tool compares the two documents you give it; it cannot know which changes were intended. Judgement is still yours: the report narrows a whole file down to the handful of values worth questioning, but it does not answer the questions.

Arrays are compared by index, so if your settings hold lists, an inserted item shifts the entries after it and each shifted entry can read as a change. For settings files this is rarely a problem, since most settings are keyed values, but it is worth knowing before you diff a list-heavy file.

If either side is not valid JSON, the tool names that side and produces no partial diff. That is a deliberate refusal to guess, and for a deploy check it is good news: a settings file with a syntax error is a finding in itself. Finally, the comparison is only as honest as your before copy. A snapshot taken after the deploy proves nothing.

Common mistakes

  • Taking the snapshot too late. The copy has to predate the deploy. Save it as part of the deploy routine, not as an afterthought.
  • Reading a text diff instead. Line-based diffs flag moved and reordered keys as changes. The structural report ignores key order, so what remains is real.
  • Skimming past additions. A new key with a default value can change behaviour as surely as an edited one. Added entries deserve the same scrutiny as changed ones.
  • Fixing the file before checking it. If you tidy or reformat the deployed file first, you lose the evidence of what the deploy actually wrote.
  • Assuming no report means no risk. The diff covers the settings file only. It says nothing about code, environment variables or data changed by the same deploy.

FAQs

What does the diff report actually show? It lists every difference between the two files by path: values that were added, values that were removed, and values that changed, each with the old value and the new value.

Does reordering keys or reformatting the file show up as changes? No. The comparison is structural and key order is ignored, so a file that was rewritten with the same values in a different order reports no changes.

What happens if the new settings file has a syntax error? The tool names the side that is not valid JSON and produces no partial diff. Treat that as a failed check: fix the syntax before you trust anything else about the deploy.

Is 1 the same as 1.0 in the comparison? Yes. The two count as the same number, so a setting rewritten from 1 to 1.0 does not appear as a change.

Are my settings uploaded to a server? No. The comparison runs fully in your browser, and both files stay on your device.

Conclusion

A deploy check that takes a minute beats a debugging session that takes an afternoon. Keep a before copy, run it against the after file in the JSON Diff Checker, and question every entry you did not expect. The same before-and-after habit works on any JSON that changes between versions: our companion guide on comparing two versions of a product feed applies it to prices and stock. For more guides in this series, see our Data and JSON Tools guides.

References