json-diff icon indicating copy to clipboard operation
json-diff copied to clipboard

JSON diff/rearrange/patch/pointer library for PHP

Results 9 json-diff issues
Sort by recently updated
recently updated
newest added

Could be usefull add ability to disable test operation in JsonDiff some node classes like fast-json-patch work also without and in websocket comunication can reduce traffic with large amount of...

Hi! Thanks for an awesome project! We have som Diffs with a lot of operations in each patch, and the exception can be a little hard to troubleshoot. Would you...

local.ERROR: Class "Swaggest\JsonDiff\JsonDiff" not found {"exception":"[object] (Error(code: 0): Class \"Swaggest\\JsonDiff\\JsonDiff\" not found at Composer.json: ``` { "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license":...

### TEST ``` $previous = ['Apples', 'Oranges', 'Bananas', 'Grapes']; $current = ['Apples', 'Grapes']; $JsonDiff = new JsonDiff($previous, $current, JsonDiff::REARRANGE_ARRAYS); $patch = json_decode(json_encode($JsonDiff->getPatch()), true) ?: []; print_r($patch); ``` ### EXPECTED RESULT...

First of all its a great plugin, works like a charm. I have a question is there an easy way to visualize the difference on browser similar like this PR:...

Comparing two structured JSON I often get this exception: **count(): Argument #1 ($value) must be of type Countable|array, string given** raised at line 152 of file JsonPointer.php: .... if (0...

Implicitly nullable parameter declarations are deprecated in PHP 8.4. The proposed change is safe and is not considered by PHP as a signature change, see https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated Unfortunately, this syntax is...