Developer Guide
How to compare two JSON documents side-by-side
Visualizing structural differences and payload mutations
Why regular text diff is insufficient for JSON
Standard line-by-line text diff tools fail when comparing JSON because differing indentation, line breaks, or property key ordering create false positive differences. A semantic JSON diff normalizes and traverses object hierarchies to identify real semantic mutations.
Key types of JSON mutations
- Added Properties: Fields present in the modified payload that did not exist in base data.
- Removed Properties: Fields deprecated or removed from the base payload.
- Value Mutations: Keys with matching paths but differing primitive values or data types.
- Array Order Variations: Reordered array items or differing element counts.
Compare JSON Privately in Your Browser
Open JSONLints Studio, click the Diff tab, paste your original and modified JSON payloads into the side-by-side editors, and click Compare Diff. All comparison occurs locally in your browser with zero data transmission.