A product feed is easy to export and hard to eyeball. The new version lands from your supplier or your own system, it holds hundreds or thousands of products, and somewhere inside it a handful of prices and stock levels changed. Some of those changes are the ones you agreed. Others are mistakes: a price that lost a digit, a stock count that reset to zero, a product quietly dropped. Opening both files and scrolling is not a review process.

The workable method is to compare the two versions structurally and read only the differences. This guide shows how, using the free JSON Diff Checker on Ovatly, which runs in your browser and reports added, removed and changed values by path. It also covers the one caveat that matters most with feeds, and it sits in the middle of the guide rather than the fine print: feed order.

Contents

  • Quick answer
  • What a structural comparison sees in a feed
  • The order caveat: arrays are compared by index
  • How to compare two feed versions, step by step
  • Worked example: a two-product feed with one price change
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

Save the old feed version before it is replaced. Prepare both versions so their products sit in the same order, then paste the old feed on one side of the JSON Diff Checker and the new feed on the other. The report lists every added, removed and changed value by path, with old and new values, so each price and stock change is one line you can verify. The preparation step is not optional decoration: arrays are compared by index, so an unsorted comparison of a reordered feed produces noise instead of answers.

What a structural comparison sees in a feed

A structural comparison walks both documents as data. It does not care about line breaks, spacing or the order of keys inside a product, because key order is ignored. What it reports is substance:

  • Changed: a path present in both versions with a different value, shown with the old and new values. A price edit or a stock update lands here.
  • Added: a path present only in the new version, such as a product field that did not exist before.
  • Removed: a path present only in the old version.

The report uses paths, so a change is located precisely rather than described vaguely. On a small record the style looks like this: comparing a version with age 31 against one with age 32 and a new city field gives CHANGED age: 31 -> 32 and ADDED city: "Lisbon". In a feed, the same style points at the product position and the field, for example a price deep inside the list, which is what makes a long report scannable.

The order caveat: arrays are compared by index

This is the honest centre of the guide. A product feed is an array, and arrays are compared by index: position one against position one, position two against position two. If the new export lists the same products in a different order, the comparison sees a different product at almost every position and reports a change for nearly every field. The report would be long, accurate about positions, and useless about products.

The fix is a preparation step you do before comparing: sort both versions the same way, for instance by SKU, so the same product occupies the same position in both files. Sorting is your step, done in your editor or with your usual tools; the diff checker does not sort for you, and this guide will not pretend otherwise. With both sides sorted alike, position means product again, and the report shrinks to the real edits.

How to compare two feed versions, step by step

  1. Keep the old feed. Before the new version overwrites it, save a copy with the date in the name.
  2. Sort both versions into the same product order, so each product sits at the same position in both files.
  3. Open the JSON Diff Checker and paste the old feed on one side and the new feed on the other.
  4. Work through the report line by line. Confirm each price and stock change against what you expected, and chase any change nobody can explain.

Worked example: a two-product feed with one price change

A tiny feed, already sorted the same way on both sides. The old version:

[
  { "sku": "A1", "price": 25, "stock": 10 },
  { "sku": "B2", "price": 40, "stock": 5 }
]

The new version, in which one price was reduced:

[
  { "sku": "A1", "price": 25, "stock": 10 },
  { "sku": "B2", "price": 35, "stock": 5 }
]

The report contains a single entry: CHANGED [1].price: 40 -> 35. Product A1 matches exactly and produces nothing. Product B2 matches on SKU and stock, and the one real edit, its price, is the whole report. Scale that up and the pattern holds: a feed of two thousand products with eleven genuine changes produces an eleven-line report, provided the ordering was aligned first.

Limitations and honest tradeoffs

The checker compares the documents you hand it; it cannot match products by SKU on its own, because arrays are compared by index. If your two versions cannot be brought into the same order, the comparison will not give you a trustworthy product-by-product answer, and no amount of staring at the report fixes that.

If either side is not valid JSON, the tool names that side and produces no partial diff. For a feed that is a useful failure: a truncated export announces itself instead of silently comparing as a shorter product list. Note, though, that a valid but incomplete feed, one that parses fine while missing products, will show the missing entries only as far as the index comparison reveals them, which is another reason the sorted preparation matters.

The report also cannot judge intent. A changed price might be the agreed promotion or a typing error that happens to look plausible. The diff gets you to the short list of changes fast; approving them is still a human decision.

Common mistakes

  • Comparing unsorted exports. The single biggest source of useless reports. Align the order first, every time.
  • Overwriting the old feed. Once the new file replaces the old one, there is nothing to compare against. Keep dated copies.
  • Treating a long report as a broken feed. Length usually means ordering drift, not hundreds of real changes. Sort and compare again before panicking.
  • Ignoring removals. A field or entry that vanished can break the receiving system just as a wrong price can. Removed entries are findings, not filler.
  • Skipping the validity signal. If the tool names one side as invalid JSON, stop and fix the export. Comparing a repaired file is useful; working around a broken one is not.

FAQs

How are products matched between the two versions? By position. Arrays are compared by index, so the first product in the old feed is compared with the first product in the new feed, the second with the second, and so on. That is why both versions need the same ordering before you compare.

What if the new feed lists products in a different order? Reordered products read as changes at many paths, because each position now holds a different product. Sort both versions the same way first, then compare, and only genuine edits remain.

Does a price written as 25 in one feed and 25.0 in the other show as a change? No. The two count as the same number, so a formatting difference in how the price was written does not appear in the report.

What happens if a value changes type, like a price becoming text? It is reported as one changed entry at that path, with the old and new values shown. A price that arrives as a string instead of a number is exactly the kind of feed error this check catches.

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

Conclusion

Comparing feed versions works when two habits hold: keep the old version, and align the order before you compare. Do those, and the JSON Diff Checker reduces a thousand-product update to the short list of price and stock changes that actually need your eyes. The same method guards configuration just as well: our companion guide on checking what a deploy changed in a JSON settings file uses it for release checks. For more guides in this series, see our Data and JSON Tools guides.

References