Original JSON
Modified JSON
Structural differences
The comparison updates as soon as both inputs contain valid JSON.
Compare JSON Online: JSON Diff and Change Checker | FlyJson
Compare JSON files or API responses. Find added, removed, and changed fields. Paste data, import files, or load a URL or cURL response. Runs in your browser.
How to compare two JSON documents
- Paste the original and modified data, drop local files, or load API responses.
- Check the validation status of both inputs, then inspect the fields and values in the diff tree.
- Turn on Hide unchanged items to focus on changes, or use Share comparison to create a link containing both inputs.
JSON diff example
Original JSON
{
"service": "library",
"access": {
"public": true,
"timeout": 15
},
"regions": [
"east",
"west"
],
"version": 2
}Modified JSON
{
"service": "library",
"access": {
"timeout": 20,
"public": true
},
"regions": [
"east",
"west",
"north"
],
"retry": 3
}This example adds retry and regions[2], removes version, and changes access.timeout from 15 to 20.
Example of invalid input
{"timeout": 20,}The trailing comma after the final field prevents parsing. Remove it so both inputs can pass validation.
Frequently asked questions
Does changing key order or indentation produce a diff?
Objects are compared by key. Key order, line breaks, and indentation do not affect the result.
What happens when I reorder an array?
Arrays are compared by index. Inserting, removing, or reordering an element marks the affected indexes.
How do I compare two API responses?
Click URL above each editor and load an endpoint or cURL command. Cross-origin APIs must let your browser read the response.
Where is my input stored?
Comparison runs in your browser. Saved datasets stay in the current browser. Anyone with a comparison link can read both inputs it contains.
Why is there no comparison result?
Both inputs must contain valid JSON. The status below each editor shows parsing errors and their locations.
What is a structural JSON diff?
A structural JSON diff parses both inputs and compares object keys and array indexes at each level. Whitespace and object key order do not affect the result. It shows changes in value or type, such as a number becoming a string, a missing field, or an item appended to an array.
Use the JSON viewer to inspect one input, or the JSON formatter to format JSON.