Skip to content
Oblicznik

Practical guide

How to compare JSON and read a difference report

Different indentation does not necessarily mean different data. This guide explains what the comparator detects, how to interpret paths and why its report is not an automatic update instruction.

Oblicznik editorial teamReviewed: 1 October 2026

Establish the comparison direction

Paste the earlier version on the left and the new version on the right, then select “Compare”. Added means present on the right but absent on the left; removed means the reverse. Swapping documents reverses these labels. Each field needs one valid document within parser limits.

If a document fails validation, correct it with the formatter first. A missing report is not a zero-difference result. Keep source versions in your secure environment when using the report for change review; paths alone cannot reconstruct complete documents.

Read member and type changes

Each record contains path and change, not before-and-after values. Changing a whole object or array to another type gives one record, not one per descendant. Adding or removing an entire container is likewise one change. The count is neither changed bytes nor all affected descendant fields.

In the example below, the price changes and a second city is added. Inspect both versions at those paths to understand the change. Labels follow the page language, so English and Polish reports can have different wording despite identical paths.

From left to right
Left versionRight versionChanged paths
{"price":1,"cities":["Łódź"]}{"price":2,"cities":["Łódź","Gdańsk"]}/price, /cities/1

JSON Pointer paths

Paths traverse member names and zero-based array indexes. A tilde in a name becomes ~0 and a slash becomes ~1. This is JSON Pointer notation, not a URL or ordinary file path. When decoding manually, replace ~1 with slash before replacing ~0 with tilde to avoid decoding a token twice.

An empty string refers to the document root, while / can address an object member with an empty name. Do not confuse them. Although values are absent, member names can reveal personal data—for example, an email address used as a key. Remove sensitive names or replace them with synthetic ones before sharing.

Path examples
Meaningpath
Document root""
Empty-name member/
a/b/a~1b
m~n/m~0n
Second cities element/cities/1

Ordering, strings and number spelling

Object member order and whitespace outside strings do not affect comparison. Names and strings are decoded, so the letter a and its Unicode escape are equal. There is no Unicode normalization: a visually similar letter with a separate accent can still differ from a precomposed character.

Numbers are compared by exact token spelling: 1 differs from 1.0, as does 0 from -0. This deliberate choice avoids rounding, but is not mathematical equality testing. The number 1 and string "1" differ in type. Agree on equality criteria with the team using the data if these distinctions matter.

Arrays and report boundaries

Arrays are compared by index, not record identifier. Inserting an item at the start can affect many positions. Arrays are not sets; items are not sorted or matched by ID. The report is a descriptive change list, not JSON Patch, and cannot be submitted directly as API update instructions.

Each input is limited to 50,000 UTF-16 units, 64 nesting levels and 10,000 values. The report permits at most 1,000 changes and 100,000 combined path units; text output is capped at 500,000. Exceeding a limit returns an error rather than a truncated list. Compare smaller complete documents with matching scope on both sides.

Privacy, copying and reset

Paste only the necessary, anonymized passage. Input and output are processed in the browser without submission to analytics or localStorage/sessionStorage history. Visiting the page still connects to hosting. Local processing cannot protect against browser extensions, an insecure device or accidental clipboard sharing.

Editing a field clears the previous result; run the tool again after a correction. Copying is a separate action. Reset clears the form and restores options but cannot remove earlier clipboard copies, printouts or documents. Report issues with a short synthetic example and expected output, not a complete production API response.

Frequently asked questions

Is object member reordering a difference?

No. Object member order is ignored, but array order matters.

Why do 1 and 1.0 differ?

We compare number spelling without floating-point conversion, not mathematical value.

Can the report be applied as JSON Patch?

No. It contains path and a change description without op/value instructions. It supports review, not patch execution.

Does reset remove clipboard text?

No. It clears the form, not user-created copies. Remove those separately if they contain sensitive data.

Sources and scope

This guide explains the tool and its limits, not compliance with an API, JSON Schema or business rules. Use examples without confidential data and verify output in its destination system. Limits and additional rejections are implementation choices, not universal JSON requirements.

Tools covered by this guide

Calculator

JSON comparison

Compare two JSON documents and find added, removed or changed members using JSON Pointer paths.

Generator

JSON escape and unescape

Turn plain text into a quoted JSON string literal or decode one layer of JSON escape sequences.