To check the result after using JSON Diff, review every added, removed, changed, or type-changed entry at its RFC 6901 path, then verify the intended update before applying it.

Use JSON Diff to paste strict left and right JSON documents. It compares the parsed data locally, so whitespace and object member order do not create noise, while real value, type, key, and positional array changes remain visible.

The output is a product-defined change list for review, not an executable JSON Patch. It identifies where the comparison observed a difference; your application still needs a separate, tested mechanism to make the update.

how do i check the result after i use json diff
How to Check JSON Diff Results After Comparing

Review the comparison output

After running the comparison, work through every entry rather than checking only the first result. Read three parts of each entry: its change type, its RFC 6901 path, and the associated value or values. The report is deterministic because object keys are sorted for comparison and reporting, so the same parsed inputs produce the same ordered change list.

Change type Meaning Value to review
Added The location exists only in the right JSON value. The right-side value
Removed The location exists only in the left JSON value. The left-side value
Changed Both sides have the same JSON type, but their values differ. Before and after values
Type-changed The JSON types differ, such as a number becoming a string or an object becoming an array. Before and after values

For each row, locate the reported path in the original documents and decide whether the transition is intentional. A whole object or array subtree can appear as the value when a member is added, removed, or changes type. Members found on both sides are compared recursively, so the useful check is the reported leaf or subtree rather than the mere presence of a difference.

Check each JSON Diff result step by step

  1. Keep the original left and right documents. Save the exact source values before pasting them. The original documents provide the reference needed to confirm that a reported path and value are correct, and the tool does not modify the source data.
  2. Confirm that both inputs are strict JSON. Each side can contain any JSON value: an object, array, string, number, Boolean, or null. Both inputs use the RFC 8259 JSON grammar. Comments, trailing commas, undefined, NaN, Infinity, BigInt syntax, and JavaScript object literals are rejected, so correct invalid syntax before attempting the comparison.
  3. Paste the two values into their respective fields. Put the earlier or baseline document on the left and the candidate document on the right. You do not need to align their whitespace or object member order because those differences are ignored during structural comparison.
  4. Run the comparison. JSON Diff matches object members by their own names, independent of source order. Arrays are treated as ordered sequences and compared by zero-based position. This distinction is important when deciding whether an array result represents a value change or a shift caused by reordering.
  5. Inspect each reported path and value. For an added entry, confirm that the location is absent on the left and present on the right. For a removed entry, confirm the reverse. For changed and type-changed entries, compare both values. Follow each path back to the source instead of relying only on the displayed summary.
  6. Copy the structured change list after review. The copied array is useful for a code review, ticket, or test plan. Review sensitive before-and-after values before placing the output in logs, chat messages, or tickets.
  7. Use a dedicated patch implementation and tests before applying changes automatically. JSON Diff locates differences, but it does not supply patch-application semantics. Translate the reviewed transitions into an explicit application change, run application-specific tests, and confirm that the resulting document matches the intended right-hand value.

Read each JSON Pointer in context

Every location uses the RFC 6901 JSON Pointer format. The path tells you where the comparison observed a difference, but it does not specify an executable operation or guarantee that changing that location will recreate the complete right-hand document.

  • /items/0/name identifies the name member inside the object at array index 0. Array positions use decimal, zero-based tokens.
  • A member name containing a slash is escaped as ~1. For example, the member name a/b appears as /a~1b.
  • A member name containing a tilde is escaped as ~0. For example, the member name a~b appears as /a~0b.
  • The root JSON Pointer is the empty string, not a slash. JSON Diff displays it as root in the human-readable list when the entire root value changes.

Use the path to navigate both original documents. This is especially helpful when a change is nested several levels below an object or array, because it keeps the review tied to the actual data location instead of a broad textual replacement.

Verify the finding before applying changes

The copied change list is a review-oriented product format. It is not RFC 6902 JSON Patch, JSON Merge Patch, a text unified diff, or a schema migration. It also does not emit move, copy, or test operations, and it does not promise that a removed value can be restored after surrounding changes.

A safe workflow is to use the paths and values to identify the intended transitions, implement those transitions through a maintained patch library or application-specific function, and write tests for the affected nested members, type changes, and array positions. Run those tests before applying the update automatically. This separates the question “where did the JSON differ?” from the separate question “how should the application safely change its data?”

Do not treat a JSON Pointer as an executable command merely because it looks path-like. The same path can identify a value change, a type change, or part of a larger structural difference. The change classification and both source values provide the context needed to choose the correct action.

Recognize results that need a second look

Array reordering: JSON Diff does not guess item identities, compute a longest common subsequence, or treat arrays as sets. When an item moves to another index, the result can contain a removal, an addition, or several changed entries rather than one semantic move. Review the affected positions and confirm that the new ordering matches your data contract.

Numeric precision: JSON numbers are parsed as JavaScript Numbers. Integers beyond the safe range and fine decimal distinctions may already be rounded before comparison. Positive and negative zero compare as the same JSON numeric value. If exact decimal spelling or arbitrary-precision numbers matter, compare the source with a parser and numeric model designed for that contract rather than relying on the browser representation.

Duplicate member names: Normal JSON parsing resolves duplicate names before the tool receives the object mapping, so they cannot be compared as separate entries. If duplicate-name behavior is significant, inspect the original source with a parser designed to preserve or report duplicates.

Missing members and null: A missing member and a member whose value is null are different states. JSON Diff can report the presence difference as added or removed while still showing null as the relevant value on the side where it exists. Check the original documents rather than treating both states as “no value.”

Confirm the comparison completed within its limits

Each input is limited to 500,000 characters, nesting is limited to 50 comparison levels, and output is limited to 5,000 changes. When a result would exceed the output limit, the tool fails instead of truncating it. A failed comparison is therefore not a partial result to trust; reduce or split the comparison and reconcile the reviewed results separately.

Once the comparison completes within those limits, you can review every displayed entry and keep the original inputs as evidence. Completion still does not remove the numeric, duplicate-name, or patch-semantics caveats, so the final check remains: confirm each path in context, verify each intended value transition, and test the actual update mechanism before applying it.

For a deeper look, see JSON Formatter Workflow: Validate, Beautify, and Minify.

For a deeper look, see How to Minify JSON in IntelliJ: Browser-Assisted Workflow.