JSON
Compare two JSON API responses and spot breaking changes
Review an order response before and after a release. Check renamed fields, nullable values, array order, and what your client should test.
Open JSON ComparatorStart with the response your client expects
Imagine reviewing a change to an order API. Compare the same order, endpoint, and request options before and after the deployment. Remove customer data and credentials from both copies. Paste the previous response into Original JSON, or select Load Samples to load both example responses.
{
"currency": "USD",
"amount": 1250,
"status": "paid",
"items": ["ticket", "parking"]
}Compare the new response
Place this response in Modified JSON and select Compare Now. Use the changes-only view to inspect the highlights, then return to the full view to see the surrounding fields. The movement of currency and status within the object produces no change on its own.
{
"status": "paid",
"currency": "USD",
"amountInCents": 1250,
"items": ["parking", "ticket"],
"receiptUrl": null
}Turn the diff into a compatibility check
The amount field disappears and amountInCents appears. A client that still reads amount can break even though 1250 appears in both responses. Check the documented units before updating the client. The new receiptUrl field is explicitly null. Test how the UI behaves with null, a missing field, and a real URL.
The two array items trade positions. Check whether the API guarantees order or whether your client accidentally treats the first item as special. For an unordered collection, match entries by a stable ID during your application tests. Keep a fixture for each behavior your client relies on.