public interface JsonPatchOperation extends JsonSerializable
Two more abstract classes extend this one according to the arguments of the operation:
DualPathOperation for operations taking a second pointer as
an argument (copy and move);PathValueOperation for operations taking a value as an
argument (add, replace and test).| Modifier and Type | Method and Description |
|---|---|
JsonNode |
apply(JsonNode node)
Apply this operation to a JSON value
|
String |
toString() |
serialize, serializeWithTypeJsonNode apply(JsonNode node) throws JsonPatchException
node - the value to patchJsonPatchException - operation failed to apply to this value