Compare JSON values rather than differences in indentation
Put the two versions in the right order
This tool compares two complete JSON documents after parsing their values. Put the earlier or reference document in the first field and the version you want to inspect in the second. The result describes additions, removals and changes from the first to the second. Reversing the inputs changes that interpretation. Keep both originals, because the report is a view of selected differences rather than a substitute for either source document.
Whitespace and object-property order do not by themselves create a value difference. Array order does matter: an array is an ordered sequence, not an automatically matched set of records. The comparison does not know which field is your application's identity key. If two lists contain the same records in a different order, positional changes may be reported. Decide whether order is meaningful in your application before treating those entries as a business change.
Read one changed value
Enter the first and second inputs shown below, then choose Compare JSON. The report points to /price, identifies the entry as changed, and shows the before and after numbers. This tells you where the decoded value differs. It does not say why the price changed, which version is correct or whether a surrounding application permits that change. Check those questions against the source system and your own requirements.
Input
{"price":10}
Second input
{"price":12}
Expected text output
[
{
"path": "/price",
"kind": "changed",
"before": 10,
"after": 12
}
]
Types are part of the comparison. A string containing the digit one differs from the number one. A missing property differs from a property whose value is null. Those distinctions matter when an application separates an unknown value, an empty value and an absent field. Do not remove quotes or insert null merely to make a comparison appear equal. Determine what each representation is intended to mean in the actual data contract.
Interpret paths carefully
For nested properties, reported paths use JSON Pointer escaping: a slash in a key is represented by ~1 and a tilde by ~0. For example, keys a/b and ~tag lead to /a~1b/~0tag. The display is a location description, not a command to execute. Do not interpret its slash characters as file-system separators or decode arbitrary URL escapes to guess a key. Check the original object's exact property names.
This version displays / for a whole-document change, including a change between two root numbers. Standard JSON Pointer represents the root with an empty string, so this report's root label must not be passed blindly to another pointer-processing program. The report is also not a JSON Patch document. Its entries use kind, before and after fields rather than a patch operation contract. Apply any intended change through a separately reviewed process.
Follow the example from field to report
The diagram isolates the price field so that the relationship between the two inputs and the output is easy to see. Ten is the earlier value, twelve is the second value, and the report names the location with a slash followed by the property name. The word changed describes that observation. It is not a statement that a price increased by an approved amount, and the tool does not calculate an explanation for the change. The original example uses plain numbers, so no currency or financial recommendation is implied.
Before comparing larger documents, use this short example to check your understanding of direction. If you reverse the fields, the earlier and later numbers in the report reverse too. The path still points to price, because the property name has not changed. This is useful when a colleague says that a value was removed or replaced but the two source versions were not clearly labeled. Agree which document is the reference before interpreting the result; a precise comparison cannot repair an ambiguous choice of inputs.
Recognize different kinds of apparently equal values
Consider a property named n. In one document its value is the quoted character 1, while in another it is the number 1. They look similar in ordinary text but have different JSON types, and the comparison reports a change. A receiving application might treat the first as an identifier and the second as a quantity. Removing the quotes just to make the report empty would change the source's meaning. Determine the intended type before deciding whether the difference needs a correction.
Arrays create another common surprise. The arrays ["a","b"] and ["b","a"] contain the same two strings, but the values at positions zero and one have changed. The comparison reports those two positions; it does not report that a record with a particular identity moved. If your application considers order irrelevant, that is a separate interpretation to document. Sorting the source merely to hide differences can destroy meaningful order, such as a sequence of steps or a priority list.
An empty comparison result means that this operation found no decoded-value differences within the accepted input and comparison rules. It does not prove that the original texts had identical spacing, that a signature over those original bytes would match or that the two versions satisfy a business rule. Choose a byte-level or application-specific check when that is the question you need to answer. The distinction lets you use an empty report correctly without giving it more authority than it has.
Investigate a change without losing the original
For a small configuration problem, start with the complete documents and identify the first unexpected path. Look at that field in each original and check its type as well as its visible value. If the field belongs to an array, check the surrounding position. If the property name contains a slash or tilde, use the escaping explanation above instead of guessing from the report's typography. Keep a harmless reduced example only after you have preserved the complete source documents elsewhere.
Useful practice cases include comparing a saved settings export with an edited copy, checking whether a test response changed a number into text, and finding an added optional field. These are review tasks, not automatic repairs. An added field may be intended, and a removed field may be obsolete; the comparison cannot know. Record the expected change and check that the report supports it. When a cap warning appears, keep the incomplete-report qualification with any shared excerpt so that a recipient does not mistake a partial view for a complete account.
Know what the parser accepts
Both inputs must be strict JSON. Comments, trailing commas, duplicate object keys and unsafe integer values are rejected by this implementation rather than silently accepted. If an identifier is too large for safe numeric representation, keeping it as an explicitly quoted string may be appropriate, but that decision changes its type and belongs to the data contract. The tool does not validate a JSON Schema or determine whether required application fields are present.
Each input has a 100,000 UTF-16-code-unit limit, and each parsed document is limited to 10,000 values and 40 nesting levels. File import has a separate 100,000-byte limit. The report stops at 1,000 differences; a cap warning means the display is incomplete, not that no additional differences exist. Split a large investigation into meaningful complete values while preserving enough context to interpret the paths correctly.
Use a report as evidence, not a decision
Useful cases include comparing two small configuration exports, checking a test response after an edit or finding an unexpectedly changed type. First confirm that the files represent comparable versions, environments and records. Two structurally equal documents can still be wrong for the intended task. A difference can also be expected, such as a new timestamp, and the tool does not provide an ignore-field rule or judge whether such a change is acceptable.
Inspect the report before copying or downloading, and verify the actual pasted or saved text. Keep the input order and relevant version labels with it. Reset clears current fields and output; a deliberately stored local draft has a separate deletion action. Use synthetic examples when asking for help, and consult the privacy policy before placing confidential configuration or personal records in a public editor. Successful comparison does not make sensitive source content suitable for sharing.