{"id":49964,"library":"evanphx-json-patch","title":"JSON Patch","description":"Package json-patch implements JSON Patch (RFC 6902) operations for applying patches to JSON documents.","status":"active","version":"5.9.11+incompatible","language":"go","source_language":null,"source_url":"https://github.com/evanphx/json-patch","tags":["json","patch","rfc6902","utility"],"install":[{"cmd":"go get github.com/evanphx/json-patch","lang":"bash","label":"Install github.com/evanphx/json-patch"}],"dependencies":[],"imports":[{"symbol":"jsonpatch","correct":"github.com/evanphx/json-patch"}],"quickstart":{"code":"import \"github.com/evanphx/json-patch\"\n\nfunc main() {\n    patch, err := jsonpatch.DecodePatch([]byte(`[{\"op\":\"add\",\"path\":\"/foo\",\"value\":\"bar\"}]`))\n    if err != nil {\n        panic(err)\n    }\n    doc, err := patch.Apply([]byte(`{}`))\n    if err != nil {\n        panic(err)\n    }\n    fmt.Println(string(doc))\n}","lang":"go","description":"Applies a JSON Patch to a document."},"warnings":[{"fix":"Use a compatible version or update import path to include /v5 if needed.","message":"Version 5.9.11+incompatible indicates a major version mismatch; the module path does not include a /v5 suffix.","severity":"breaking","affected_versions":">=5.0.0"}],"env_vars":null,"search_vec":"'6902':11 'appli':14 'document':18 'implement':7 'json':1,5,8,17,19 'json-patch':4 'oper':12 'packag':3 'patch':2,6,9,15,20 'rfc':10 'rfc6902':21 'util':22","created_at":"2026-06-15T04:35:02.018246+00:00","updated_at":"2026-06-15T04:35:02.018246+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/evanphx/json-patch","github":"https://github.com/evanphx/json-patch","docs":"https://pkg.go.dev/github.com/evanphx/json-patch#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}