com.github.fge.jsonpatch.operation
Class OmitOperation
java.lang.Object
com.github.fge.jsonpatch.operation.PathValueOperation
com.github.fge.jsonpatch.operation.OmitOperationBase
com.github.fge.jsonpatch.operation.OmitOperation
- All Implemented Interfaces:
- JsonSerializable, JsonPatchOperation
public final class OmitOperation
- extends OmitOperationBase
Extended JSON Patch omit
operation.
The operation will remove the value
at path
if it exists.
It will do nothing if the actual value at path
is not equal to value
.
It will throw a "no such path" error if there is no value at path
.
OPERATION_NAME
public static final String OPERATION_NAME
- See Also:
- Constant Field Values
OmitOperation
public OmitOperation(JsonPointer path,
JsonNode value)