JSON atšķirību skatītājs (salīdzina divus JSON dokumentus)

Ielīmējiet divus JSON dokumentus blakus un atstājiet tikai strukturālās atšķirības.

Pievienotie, noņemtie, izmainītie un tipa izmaiņu elementi ir atdalīti, lai pārskatīšana būtu ātra un viegli salasāma.

Browser-only processing, with no server upload
Array-aware modes reduce review noise
Export JSON Patch and JSON Merge Patch
Jūsu JSON tiek salīdzināts tikai šajā pārlūkā un netiek augšupielādēts serverī.

Recommended workflow

  1. Clean or sort the JSON first with JSON Formatter or JSON Key Sorter when you want consistent input.
  2. Paste or upload the left and right JSON documents, then run Compare.
  3. Choose the array mode, match keys, tolerance, and path rules that fit the review.
  4. Review the summary, changed paths, tree, and exportable patch output.

Paraugs

This sample shows how reordered arrays, timestamp changes, tiny floating-point differences, and one added item can be narrowed down with match keys, tolerance, and path rules.

Kreisais JSON

Input
{
  "orderId": "A-1001",
  "updatedAt": "2026-04-16T08:00:00Z",
  "customer": {
    "name": "Acme Corp",
    "tags": ["vip", "beta"]
  },
  "items": [
    {
      "sku": "A-1",
      "qty": 2,
      "price": 10
    },
    {
      "sku": "B-2",
      "qty": 1,
      "price": 4.5
    }
  ],
  "summary": {
    "currency": "USD",
    "total": 24.5
  }
}

Labais JSON

Input
{
  "orderId": "A-1001",
  "updatedAt": "2026-04-16T08:05:00Z",
  "customer": {
    "name": "Acme Corporation",
    "tags": ["beta", "vip"]
  },
  "items": [
    {
      "sku": "B-2",
      "qty": 1,
      "price": 4.5
    },
    {
      "sku": "A-1",
      "qty": 2,
      "price": 10.0001
    },
    {
      "sku": "C-3",
      "qty": 1,
      "price": 7
    }
  ],
  "summary": {
    "currency": "USD",
    "total": 24.5001
  }
}

What the sample demonstrates

This sample shows how reordered arrays, timestamp changes, tiny floating-point differences, and one added item can be narrowed down with match keys, tolerance, and path rules.

Kā lietot

  1. Ielīmējiet JSON kreisajā un labajā redaktorā.
  2. Ja nepieciešams, pielāgojiet atslēgu kārtību, masīva kārtību un attēlošanas režīmu.
  3. Palaidiet salīdzināšanu, pēc tam kopējiet vai lejupielādējiet pārskatu, kad esat pabeidzis.
  4. Copy or download the changed paths, patch, merge patch, or report when you are done.

Ko tas dara

  • Rekursīvi salīdzina JSON struktūras.
  • Atdala added / removed / changed / type_changed ierakstus.
  • Pārslēdzas starp koka un saraksta skatu.
  • Kopē pārskatu vai lejupielādē to kā JSON.
  • Export JSON Patch, JSON Merge Patch, changed paths, and a Markdown report.
  • Collapse unchanged nodes and jump directly to the relevant path.

Specifikācija

  • Atslēgu kārtība pēc noklusējuma neietekmē salīdzināšanas rezultātu.
  • Masīvi pēc noklusējuma tiek salīdzināti secībā, bet šo darbību var mainīt.
  • Šis rīks neveic JSON Schema validāciju.
  • Visa apstrāde notiek pārlūkā. Nekas netiek sūtīts uz serveri.
  • Ļoti lieli JSON dokumenti ir atkarīgi no pārlūka veiktspējas.
  • Large inputs use summary-first rendering and can disable auto-compare.

BUJ

Vai var ignorēt atslēgu kārtību?

Jā. Noklusējuma darbība izvairās no atslēgu kārtības trokšņa rezultātā.

Vai masīva pozīcijas tiek salīdzinātas?

Jā, pēc noklusējuma. Iestatījumu panelī varat mainīt darbību.

Vai tas validē JSON Schema?

Nē. Tas koncentrējas tikai uz strukturālu salīdzināšanu.

Vai kaut kas tiek augšupielādēts serverī?

Nē. Salīdzināšana notiek pilnībā jūsu pārlūkā.

Is anything uploaded to a server?

No. Comparison, normalization, and export all happen locally in your browser.

What can I export?

JSON Patch, JSON Merge Patch, changed paths, and a Markdown report.