{"id":50165,"library":"evanphx-json-patch-v5","title":"JSON Patch v5","description":"Package jsonpatch offers functionality to apply and create JSON Patch (RFC 6902) operations.","status":"active","version":"5.9.11","language":"go","source_language":null,"source_url":"https://github.com/evanphx/json-patch","tags":["json","patch","rfc-6902","merge"],"install":[{"cmd":"go get github.com/evanphx/json-patch/v5","lang":"bash","label":"Install github.com/evanphx/json-patch/v5"}],"dependencies":[],"imports":[{"symbol":"jsonpatch","correct":"github.com/evanphx/json-patch/v5"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/evanphx/json-patch/v5\"\n)\n\nfunc main() {\n\tpatch, _ := jsonpatch.DecodePatch([]byte(`[{\"op\":\"add\",\"path\":\"/foo\",\"value\":\"bar\"}]`))\n\toriginal := []byte(`{}`)\n\tresult, _ := patch.Apply(original)\n\tfmt.Println(string(result))\n}","lang":"go","description":"Applies a JSON Patch operation to a JSON document."},"warnings":[{"fix":"Update calls from patch.Apply(doc) to patch.Apply(doc) (now returns []byte, error).","message":"Breaking changes between v4 and v5: the Apply function signature changed.","severity":"breaking","affected_versions":">=5.0.0"}],"env_vars":null,"search_vec":"'-6902':20 '6902':15 'appli':9 'creat':11 'function':7 'json':1,12,17 'jsonpatch':5 'merg':21 'offer':6 'oper':16 'packag':4 'patch':2,13,18 'rfc':14,19 'v5':3","created_at":"2026-06-15T04:43:00.311216+00:00","updated_at":"2026-06-15T04:43:00.311216+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/v5#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization","utility"],"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}}