class JsonPatch

Constants

OP_ADD

OP_REPLACE

OP_REMOVE

Methods

diff ($src, $dest) static 

No description

makeDiff ($srcStruct, $desStruct, string $path = '')

No description

Details

static diff($src, $dest)

Parameters

$src
$dest

Example code

$jsonPatch->diff($src, $dest);

makeDiff($srcStruct, $desStruct, string $path = '')

Parameters

$srcStruct
$desStruct
$path string

Example code

$jsonPatch->makeDiff($srcStruct, $desStruct, $path);