相互変換
ローカル実行 · アップロードゼロ

JSON Patch

Apply · Generate · RFC 6902 · Local

YAML 変換

準備完了

元の入力

                                
                            
解析出力

                                
固定高さ、長いコードは枠内スクロール

ABOUT

About JSON Patch

Left pane is the original document. In Apply mode the right pane is a patch array. In Generate mode the right pane is the target document.

Diff remains the visual comparison tool. This page is the RFC 6902 artifact: copy it into APIs that speak JSON Patch.

add, remove, and replace cover the operations Diff already emits. move/copy/test are not applied in this version.

Samples use order A-1042. Paths are JSON Pointers (RFC 6901).

JSON Patch

01

Apply

Document + patch → new document.

02

Generate

Left vs right → patch array.

03

RFC 6902

add / remove / replace.

04

Pointers

Paths like /status, /reason.

05

Not Diff

No side-by-side highlight here.

06

Local

No upload.

How to use

  1. 1

    Paste the original JSON on the left.

  2. 2

    Choose Apply or Generate.

  3. 3

    Paste a patch array or the target JSON on the right.

  4. 4

    Copy the result.

FAQ

Is this JSON Diff?

No. Diff highlights changes. This page applies or emits a patch document.

Which operations?

add, remove, replace. Not move/copy/test.

Can I still copy a patch from Diff?

Yes. Diff keeps Copy JSON Patch and links here.

Is data uploaded?

No.

What is the path syntax?

JSON Pointer: /foo/0/bar.

Root replace?

An empty path replace/add replaces the whole document.

クリップボードにコピーしました