মূল বিষয়বস্তুতে যান
CuteJSON
↑↓ নেভিগেট Enter নির্বাচন Esc বন্ধ

JSON Patch Playground

Work with RFC 6902 patches: apply one to a document, write one from two documents, or turn one around so it undoes itself.

সব সরঞ্জামে ফিরুন

কীবোর্ড শর্টকাট

এগুলো এই পৃষ্ঠায় সংশ্লিষ্ট কার্য থাকলে কাজ করে।

কমান্ড প্যালেট খুলুন
Ctrl/Cmd + K
প্রাথমিক কার্য চালান
Ctrl/Cmd + Enter
ফরম্যাট
Ctrl/Cmd + Shift + F
মিনিফাই
Ctrl/Cmd + Shift + M
আউটপুট কপি
Ctrl/Cmd + Shift + C
ফাইল খুলুন
Ctrl/Cmd + Shift + O
আউটপুট ডাউনলোড
Ctrl/Cmd + S
এই ডায়ালগ বন্ধ
Esc
এই ডায়ালগ খুলুন
F1 / ?

স্থানীয় ডেটা

নিচের সবকিছু শুধুমাত্র এই ব্রাউজারে সংরক্ষিত।

অসংরক্ষিত খসড়া
মনে রাখা অপশন সহ সরঞ্জাম

সাম্প্রতিক ফাইল

    এই ডিভাইসে এখনো কোনো ফাইল খোলা হয়নি।

    লিংকের মাধ্যমে শেয়ার

    বিষয়বস্তু # চিহ্নের পরের অংশে প্যাকেট করা হয়।

    এই পৃষ্ঠার প্রথম ইনপুট শেয়ার করে।

    শেয়ার করার মতো কিছু নেই এখনো।

    Document

    একটি URL থেকে লোড

    ব্রাউজার থেকে সরাসরি URL আনে।

    Patch

    একটি URL থেকে লোড

    ব্রাউজার থেকে সরাসরি URL আনে।

    Result

    The result appears here.

    Affected paths

    The paths a patch touches appear here.

      সম্পূর্ণরূপে আপনার ব্রাউজারে চলে।

      এই সরঞ্জাম সম্পর্কে

      A JSON Patch is a list of operations that turns one document into another. RFC 6902 defines it, and APIs that accept partial updates ask for it. This page does the four things that list is actually used for. Apply runs a patch against a document and prints the result. Generate compares two documents and writes the patch that turns the first into the second. Reverse runs a patch and writes the patch that undoes it, which needs the original document, because a remove says what to delete and not what was there. Check reads a patch on its own and reports whether it is well formed, which is the test worth running before sending one anywhere. All six operations are supported: add, remove, replace, move, copy and test. A patch is all or nothing, exactly as the specification requires: if one operation fails then none of them are applied, and the page says which one stopped and why. Values keep the text you wrote them with, so a twenty digit id survives a patch that never mentioned it and 1.0 stays 1.0. Comparison, which is what test asks and what generation uses to decide a value changed, reads 1 and 1.0 as the same number and ignores the order of object keys, while array order is data and is compared position by position.

      কিভাবে ব্যবহার করবেন

      1. Paste the document on the left and the patch on the right, or load the sample.
      2. Choose what to do: apply the patch, generate one from two documents, reverse one, or check a patch on its own.
      3. Read the affected paths, then copy or download the result.