Table of contents
Decide what equality means
JSON objects are usually unordered key maps while arrays remain ordered sequences.
Use text comparison when exact bytes or source formatting is contractually significant.
Validate the merged result
Parse and schema-check merged JSON before approval.
Run consumer tests so structural compatibility is proven, not assumed.
Worked example: distinguish reordered keys from a changed value
Imagine two exports of the same service settings. Source A uses the old property order and a five-second timeout. Source B moves the keys and raises the timeout to eight seconds. A text diff reports both presentation and value changes; a JSON comparison should make the timeout decision easier to see.
The examples below deliberately keep the regions array in the same order. JSON mode sorts object keys recursively, but preserves array order. Reordering that array would remain a change. Do not sort lists just to make the diff quieter: priority lists, migration steps, and routing rules can depend on their order.
Source A: original export
{
"timeoutMs": 5000,
"retries": 2,
"regions": ["us", "eu"]
}Source B: revised export
{
"regions": ["us", "eu"],
"retries": 2,
"timeoutMs": 8000
}Expected normalized result
{
"regions": [
"us",
"eu"
],
"retries": 2,
"timeoutMs": 8000
}Reproduce the comparison in MergeGlass
Use the small examples above before loading your own export. This gives you a known answer to check against the tool and helps you recognize the difference between formatting noise and a real data change.
Normalization rewrites presentation. The downloaded result is not a byte-preserving copy of either input. If the exact original representation matters, compare in Text mode and review the formatting edits explicitly.
- Open the comparison workspace and use Paste text in Source A. Paste the original export and apply the editor change.
- Paste the revised export into Source B. Select JSON explicitly in Comparison format; pasted text may not have a .json filename for automatic detection.
- Review the timeout change. Choose B for that block, then inspect the complete combined preview.
- Download the result and parse it in the program that will consume it. Confirm retries stays 2 and regions stays ["us", "eu"].
Troubleshoot misleading JSON results
If parsing fails, check for trailing commas, comments, single-quoted strings, and incomplete pasted documents. Standard JSON does not allow those extensions. Repair a copy deliberately or use Text mode to inspect invalid input without claiming a structural comparison.
Duplicate object keys are especially dangerous: a parser may retain only the last value, hiding an earlier occurrence. Check suspicious exports before normalization. JavaScript-based parsing can also lose precision for integers outside the safe integer range; use an appropriate exact-number workflow for such data.
A valid JSON document can still have an invalid shape. A timeout string is different from a timeout number, null is different from a missing property, and an empty array is different from an absent list. Validate against your schema and check the consumer behavior rather than accepting a clean-looking diff as proof.
Try it yourself
Find the meaningful JSON change
JSON mode removes object-key ordering noise. Choose B for the timeout change, then check that regions and retries remain intact.
Try this example adds fictional sample data as a separate file review and keeps your existing reviews.
The download is a standalone practice session. Save your current work before importing it through Add or import → Import review bundle. Your own content is never included in the download.
Review checklist
- Choose semantic or exact-text comparison.
- Parse both documents.
- Preserve array order.
- Validate with schema or consumer tests.