Compare two JSON documents online: added, missing and changed
Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. Download, no sign-up →
Handy when you need to see how a new API response differs from yesterday’s, or to compare two configuration files.
How to read the result
Each line shows a field path and what happened to it: the value changed, the type changed, for example a number became a string, or the field exists only in the first or only in the second JSON. Nested fields use dots and array elements use an index in brackets, such as items[1].amount.
What the comparison takes into account
Field order in an object does not matter: {"a":1,"b":2} and {"b":2,"a":1} match. Array elements are compared by position, so inserting an element at the start of an array shows changes in all the following ones. The numbers 1 and 1.0 are equal, while the number 2000 and the string "2000" differ: for an API that difference matters.
Comparing with a baseline on every release
Comparing responses by hand after every change is tedious. In Checkcraft expectations are rules: status, types, totals, the set of fields. They run on every pass and the report shows what differs. See the regression testing guide.
Repeat this on your own API
Checkcraft is a desktop app that saves API response checks without code and shows what did not match. Start with a sample, then use your own sanitized data. Free runs on Windows and Linux with no time limit.
Download FreeDownload and first runNo sign-up or email needed, the archive is ready in a couple of minutes. See the edition limits.
Start with the linked example and compare its result with your own test requirement.