logo
GeekFormat

JSON Diff

JSON 1
JSON 2

Related

Features

  • Deep diff comparison: recursive comparison of two JSON objects, accurately identifies added, deleted, and modified fields
  • Visual highlighting: clearly marks differences in red and green, supports synchronized left-right scrolling
  • Smart ignore options: supports ignoring array order and whitespace, reduces noise from irrelevant differences
  • Path navigation: click on a diff point to directly show the corresponding JSON path for quick code location
  • Local ultra-fast processing: pure browser-side computation, ensures security and privacy of sensitive business data

FAQ

How do I quickly find differences between two JSON files?

Simply paste the two JSON texts into the left and right input boxes. The tool will automatically perform a deep recursive comparison. New fields are highlighted in green, deleted fields in red, and modified fields show both old and new values, helping you instantly locate data differences.

Will different array element orders be flagged as differences?

You can choose freely. The tool offers an 'ignore array order' option. When enabled, even if array elements are in a different order, they won't be marked as different as long as the content matches. Perfect for logical validation of API responses.

What development and testing scenarios is this tool suitable for?

Ideal for: 1) **API testing**: compare actual API responses with expected Mock data; 2) **Config management**: compare configuration file differences across environments (dev/production); 3) **Automated testing**: as a test assertion helper to quickly troubleshoot data inconsistencies.