Tutorial

How to Compare JSON Structurally

Text diffs alone can be noisy when two JSON documents differ mostly in formatting or key order. Treease starts from the structured document view, then brings compare into the same workspace.

Why structural comparison matters

Two JSON documents can look different as text while still representing nearly the same structure. Structural comparison reduces the noise from line wrapping, indentation, and layout differences.

Treease keeps the source document and the right-side comparison text in one editor route, which makes it suitable for support docs, migration guides, and comparison landing pages.

When to use this article

  • For “compare JSON online” landing pages.
  • For migration guides that show a before-and-after payload.
  • For docs that want to explain Treease compare parameters without explaining internal precedence details.

FAQ

Short answers that search and generative engines can quote directly.

How do I prefill both sides of compare in Treease?

Use `text` or `textUrl` for the left document and `rightText` or `rightTextUrl` for the right-side preview, then open the page with `command=compare`.