Compare two JSON documents

Paste two JSON documents — two API responses, a response and a snapshot, yesterday's fixture and today's — and get every difference as a JSONPath with its old and new value. Key order is ignored, numbers that differ only in type are flagged separately, and arrays are compared position by position, which is how a contract regression usually shows up.

Why a text diff is the wrong tool

Two semantically identical responses can differ in key order and whitespace on every line, and a text diff reports all of it. Comparing parsed values by path reports only what changed in meaning, which is what a snapshot test should fail on.

Type changes are their own category

A field that went from 1 to "1" is not a value change; it is a contract break that will crash a strictly typed client. It is listed as a type change so it does not hide among ordinary edits.

Arrays are compared by position

Inserting one item at the start of a list shows every later item as changed. That is correct for ordered collections and noisy for sets — sort both sides by a stable key first when order does not matter.

Other tools

All tools · Getting started guide · All 55 mock REST APIs

Last updated