{"library":"json-patch","type":"library","category":null,"description":"This library provides a JavaScript implementation of the JSON Patch (RFC 6902) and JSON Pointer (RFC 6901) specifications. It allows for applying changes to JSON documents, including operations like add, remove, replace, move, copy, and test. The current stable version is 0.7.0. A key characteristic is that all patch operations are applied *in-place*, directly modifying the input document, which can lead to significant side effects. The package supports usage in browsers, Node.js environments via CommonJS, and AMD modules. Given its version and the age of its last known development activity (last commit over 10 years ago on its GitHub repository), the package is considered unmaintained and has not seen updates for several years, making it unsuitable for new projects requiring active support or modern features. It adheres to the RFC standards but lacks modern JavaScript conveniences or TypeScript support.","language":"javascript","status":"abandoned","version":"0.7.0","tags":["javascript","diff","patch","json","jsonpatch","jsonpointer"],"last_verified":"Wed May 27","install":[{"cmd":"npm install json-patch","imports":["import jsonpatch from 'json-patch';\n// Or for CommonJS:\nconst jsonpatch = require('json-patch');","import jsonpatch from 'json-patch';\nconst document = {};\nconst patch = [];\njsonpatch.apply(document, patch);","import jsonpatch from 'json-patch';\ntry { /* ... */ } catch (e) { if (e instanceof jsonpatch.JSONPatchError) { /* handle */ } }"]},{"cmd":"yarn add json-patch","imports":[]},{"cmd":"pnpm add json-patch","imports":[]}],"homepage":null,"github":"https://github.com/bruth/jsonpatch-js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/json-patch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/json-patch/compatibility"}}