python-json-patch icon indicating copy to clipboard operation
python-json-patch copied to clipboard

Applying JSON Patches in Python

Results 44 python-json-patch issues
Sort by recently updated
recently updated
newest added

The following sample of code ought to work, but instead it raises an error: ```python from jsonpatch import apply_patch, make_patch old = [ {"x": ["a", {"y": ["b"]}], "z": "a"}, {"x":...

Added `pyproject.toml`. Version is now fetched and populated automatically from git tags using `setuptools_scm`. Metadata stored in source files is fetched using `read_version`. Got rid of raw scripts, using `console_scripts`...

I found a bug with an example here that failed when applying the patch that was generated. ``` >>> L1 = ['a', 'b', ['d', 'e'], 'f'] >>> L2 = ['a',...

In #139 the question has come up whether to drop support for Python 2.7. I don't have any opinion on that yet, but I'd like to open the discussion. A...

I encountered unexpected behavior when running the example in the docs [here](https://python-json-patch.readthedocs.io/en/latest/tutorial.html#creating-a-patch). After applying, the patch itself has changed. I expected it to be immutable so I could re-use the...

My use case: 1. I want to use the awesome jsonpatch on yaml files 2. I wish to preserve yaml comments This is actually very easy to do with minimal...

Given: ```python d1 = {1: "a", 2: "b"} d2 = {1: "b", 2: "v"} patch = jsonpatch.make_patch(d1, d2) patch.to_string() '[{"value": "b", "op": "replace", "path": "/1"}, {"value": "v", "op": "replace", "path":...

**Version: 1.32** **Python version: 3.8** **Description** Removing array element with dash notation raises an unexpected TypeError. Like so: `{'op': 'remove', 'path': '/vals/-'}`. I understand that the dash points to the...

tests have been failing previously, see eg https://travis-ci.com/github/stefankoegl/python-json-patch/jobs/488308657