public final class RemoveOperation extends JsonPatchOperation
remove
operation
This operation only takes one pointer (path
) as an argument. It
is an error condition if no JSON value exists at that pointer.
BUNDLE, op, path
Constructor and Description |
---|
RemoveOperation(JsonPointer path) |
Modifier and Type | Method and Description |
---|---|
JsonNode |
apply(JsonNode node)
Apply this operation to a JSON value
|
void |
serialize(JsonGenerator jgen,
SerializerProvider provider) |
void |
serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
String |
toString() |
public RemoveOperation(JsonPointer path)
public JsonNode apply(JsonNode node) throws JsonPatchException
JsonPatchOperation
apply
in class JsonPatchOperation
node
- the value to patchJsonPatchException
- operation failed to apply to this valuepublic void serialize(JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public void serializeWithType(JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public String toString()
toString
in class JsonPatchOperation