A text diff of two JSON files is often noise. Here is what to watch for.
1. Key order
JSON objects are unordered, so {"a":1,"b":2} equals {"b":2,"a":1}. A line diff shows a change. Sort keys or use a structural diff.
2. Whitespace and formatting
Minified vs pretty-printed JSON differs on every line. Format both the same way first.
3. Array order
Arrays are ordered, so a reordered array is a real change, unless it is a set. Decide which one you mean.
4. Number types
1, 1.0 and 1e0 are the same number but different text. Big integers above 2^53 lose precision in JavaScript.
5. null vs missing
A missing key and "key": null mean different things to many APIs. Treat them as distinct in tests.
const sorted = JSON.stringify(obj, Object.keys(obj).sort(), 2); Tools
For quick comparisons I use the JSON diff and JSON formatter. Both run locally in your browser at webdevtoolbox.com.