November 2017
Intermediate to advanced
420 pages
10h 29m
English
JSON Patch is a format (identified by the media type, application/ json-patch+json) for expressing changes to a target JSON document intended for use with the HTTP PATCH method to apply partial modification of the target resource. JSON Patch operations are expressed in the JSON document, as follows:
|
Operation |
JSON Patch document |
|
Add: Used to add the <value> to the specified <location>. |
{ op: add, path: <location>, value: <value> } |
|
Remove: Used to remove the value at the specified <location>. |
{ op: remove, path: <location>} |
|
Replace: Used to update the given <value> at the specified <location>. |
{ op: replace, path: <location>, value: <value> } |
|
Copy: Used to copy a value from the <from-location> ... |