Registry / serialization / evanphx-json-patch-v5

evanphx-json-patch-v5

JSON →
library5.9.11gogounverified

Package jsonpatch offers functionality to apply and create JSON Patch (RFC 6902) operations.

serializationutility
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

github.com/evanphx/json-patch/v5

Applies a JSON Patch operation to a JSON document.

package main import ( "fmt" "github.com/evanphx/json-patch/v5" ) func main() { patch, _ := jsonpatch.DecodePatch([]byte(`[{"op":"add","path":"/foo","value":"bar"}]`)) original := []byte(`{}`) result, _ := patch.Apply(original) fmt.Println(string(result)) }
Debug
Known footguns
breakingBreaking changes between v4 and v5: the Apply function signature changed.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
38 hits · last 30 days
bytedance
5
gptbot
3
bingbot
3
amazonbot
3
claudebot
3
mj12bot
1
ahrefsbot
1
Resources