public final class ReplaceOperation extends PathValueOperation
replace operation
For this operation, path points to the value to replace, and
value is the replacement value.
It is an error condition if path does not point to an actual JSON
value.
valueBUNDLE, op, path| Constructor and Description |
|---|
ReplaceOperation(JsonPointer path,
com.fasterxml.jackson.databind.JsonNode value) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
apply(com.fasterxml.jackson.databind.JsonNode node)
Apply this operation to a JSON value
|
serialize, serializeWithType, toStringpublic ReplaceOperation(JsonPointer path, com.fasterxml.jackson.databind.JsonNode value)
public com.fasterxml.jackson.databind.JsonNode apply(com.fasterxml.jackson.databind.JsonNode node)
throws JsonPatchException
JsonPatchOperationapply in class JsonPatchOperationnode - the value to patchJsonPatchException - operation failed to apply to this value