php-jsonpatch icon indicating copy to clipboard operation
php-jsonpatch copied to clipboard

JSON Patch implementation for PHP

Results 7 php-jsonpatch issues
Sort by recently updated
recently updated
newest added

Patch::apply() relies on `mb_substr()` being available, which is only the case when either the Symfony polyfill or `ext-mbstring` are installed. I've used https://github.com/thephpleague/climate/issues/109 as an example that fixes the same...

These tests will fail. We'll try to make them pass by adding commits to this branch.

If you add `"op":"add"` an some data with such path `1542816135044` to an existing object, `"path":"/objects"` then the addition does not occur. `"path":"/objects/1542816135044"` If the value is reduced, everything works...

Is it possible to add feature to generate json string(which contains JSON patch) for two json strings like in below given code, I needed this feature along with applying patch...

feature-request

I think it is very common to convert the patched document to an array afterwards. This given, it would be nice to add a method which handles this within the...

enhancement
feature-request

If my original document is: {} and I want to add something to the root (ex: "foo": "bar") I can't with the path being "" or "/". Is this a...

bug

I found these official json-patch integration tests: https://github.com/json-patch/json-patch-tests Do you want me to make a branch / PR that will (hopefully as little as possible) fail some tests and then...