Class CopyOperation

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.JsonSerializable

    public final class CopyOperation
    extends DualPathOperation
    JSON Patch copy operation

    For this operation, from is the JSON Pointer of the value to copy, and path is the destination where the value should be copied.

    As for add:

    • the value at the destination path is either created or replaced;
    • it is created only if the immediate parent exists;
    • - appends at the end of an array.

    It is an error if from fails to resolve to a JSON value.

    • Constructor Detail

      • CopyOperation

        public CopyOperation​(java.lang.String from,
                             java.lang.String path)