com.github.fge.jsonpatch.operation
Class OmitOptionalOperation
java.lang.Object
com.github.fge.jsonpatch.operation.PathValueOperation
com.github.fge.jsonpatch.operation.OmitOperationBase
com.github.fge.jsonpatch.operation.OmitOptionalOperation
- All Implemented Interfaces:
- JsonSerializable, JsonPatchOperation
public final class OmitOptionalOperation
- 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 do nothing if there is no value at path
.
OPERATION_NAME
public static final String OPERATION_NAME
- See Also:
- Constant Field Values
OmitOptionalOperation
public OmitOptionalOperation(JsonPointer path,
JsonNode value)