A Python implementation of JSON Pointer and JSON Patch
pip install pyjsonpatchpyjsonpatch
About
A Python implementation of JSON Pointer (RFC 6902) and JSON Patch (RFC 6902). Primarily, the package can do the following to Python object(s) representing JSON(s):
apply_patchto modify an object with a JSON patchgenerate_patchto generate a JSON Patch from two objectsget_by_ptrto retrieve a value from object using a JSON pointer
Table of Contents
Installation
Python 3.8 or higher is required. You can install the library with:
# Linux/macOS
python3 -m pip install -U pyjsonpatch
# Windows
py -3 -m pip install -U pyjsonpatch
Development
Install the dev requirements with:
# Linux/macOS
python3 -m pip install -r requirements-dev.txt
# Windows
py -3 -m pip install -r requirements-dev.txt