JSON Patch is useful when you want to apply updates to files in remote locations. For example, I have file 'A' and have updated it to file 'B'. I can send the patch file to other locations who are using (but have not modified) file 'A' so they can update it to file 'B'. If other locations have updated their file 'A' as well then Graft will be more useful.
In this example the patch file is larger than the data file. In a typical case the data file could be very large with just a few modifications meaning that the patch file will be much smaller than the data file.
The two inputs are specified along with the
patchDirection which can be
bToA. The default is
dxConfig can be used, this is initially setup to allow ignoring changes for certain keys. See Ignore Changes.
For details of requests see Patch Request.