JSON موازنہ / فرق + پیچ

دو JSON دستاویزات کا اپنے براؤزر میں معنوی طور پر موازنہ کریں اور diff کو پیچ میں بدل دیں۔

کوئی اپ لوڈ نہیں، کوئی سرور راؤنڈ ٹرپ نہیں۔ array-aware موازنہ کریں modes، path rules، اور numeric tolerance کے ذریعے شور کم کریں۔

صرف براؤزر میں پروسیسنگ، بغیر سرور اپ لوڈ
array-aware موڈز جائزے کا شور کم کرتے ہیں
JSON پیچ اور JSON Merge پیچ برآمد کریں
سب کچھ آپ کے براؤزر سیشن میں رہتا ہے۔ کچھ بھی اپ لوڈ نہیں ہوتا۔

تجویز کردہ ورک فلو

  1. Clean or sort the JSON first with JSON Formatter or JSON Key Sorter when you want consistent input.
  2. پیسٹ or اپ لوڈ the left and right JSON documents, then run موازنہ کریں.
  3. Choose the array mode, match keys, tolerance, and path rules that fit the review.
  4. Review the خلاصہ, changed paths, درخت, and exportable پیچ output.

نمونہ

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.

Before

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
    }
  ],
  "خلاصہ": {
    "currency": "USD",
    "total": 24.5
  }
}

After

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
    }
  ],
  "خلاصہ": {
    "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.

موازنہ کیسے کریں

  1. پیسٹ or اپ لوڈ the left and right JSON documents.
  2. Choose strict, ignore order, multiset, or match by key(s), then add any path rules you need.
  3. Run موازنہ کریں or use the shortcut. Validate first if you only want to check parsing.
  4. کاپی کریں or ڈاؤن لوڈ the changed paths, پیچ, merge پیچ, or رپورٹ when you are done.

آپ کیا کر سکتے ہیں

  • JSON کو خط بہ خط کے بجائے معنوی طور پر موازنہ کریں۔
  • array آئٹمز کو id، sku، یا code جیسے key(s) کے ذریعے ملائیں۔
  • paths کو نظر انداز کریں، paths منتخب کریں، یا ہر path کے لیے موازنہ کریں rules لگائیں۔
  • چھوٹے floating-point فرق کو ہموار کرنے کے لیے numeric tolerance استعمال کریں۔
  • JSON پیچ، JSON Merge پیچ، بدلے ہوئے paths، اور Markdown رپورٹ برآمد کریں۔
  • غیر تبدیل شدہ nodes سمیٹیں اور براہِ راست متعلقہ path پر جائیں۔

موازنہ کے اصول اور آؤٹ پٹ

  • Processing runs entirely in the browser. Nothing is اپ لوڈed.
  • Strict, ignore-order, multiset, and match-by-key array modes are supported.
  • Path rules support ignore, strict, ignore-order, multiset, match-keys, and tolerance.
  • Numeric tolerance is applied to numbers only.
  • Comments can be stripped before parse when needed.
  • Large inputs use خلاصہ-first rendering and can disable auto-موازنہ کریں.

اکثر پوچھے گئے سوالات

Can I موازنہ کریں arrays of objects by key?

جی ہاں۔ key(s) کے ذریعے ملائیں استعمال کریں اور id یا sku جیسے keys درج کریں۔ آپ ہر path پر قاعدہ بدل بھی سکتے ہیں۔

How do I ignore timestamps or request IDs?

انہیں Ignore paths میں شامل کریں، یا جب استثنا صرف ایک subدرخت پر لاگو کرنا ہو تو path rule استعمال کریں۔

Can I keep array order for some parts and ignore it for others?

جی ہاں۔ ignore-order، multiset، یا match-keys صرف وہاں سیٹ کرنے کے لیے path rules استعمال کریں جہاں ضرورت ہو۔

Does it support JSON with comments?

معیاری JSON comments کی اجازت نہیں دیتا۔ صرف اس وقت Strip comments before parse آن کریں جب JSONC-style input قبول کرنا ہو۔

Is anything اپ لوڈed to a server?

نہیں۔ موازنہ، normalizaion، اور برآمد سب آپ کے براؤزر میں مقامی طور پر ہوتے ہیں۔

What can I export?

JSON پیچ، JSON Merge پیچ، بدلے ہوئے paths، اور Markdown رپورٹ۔