Module jakarta.json

Class JsonMergePatchImpl

  • All Implemented Interfaces:
    JsonMergePatch

    public final class JsonMergePatchImpl
    extends Object
    implements JsonMergePatch
    This class is an implementation of a JSON Merge Patch as specified in RFC 7396.
    Since:
    1.1
    • Constructor Detail

      • JsonMergePatchImpl

        public JsonMergePatchImpl​(JsonValue patch)
    • Method Detail

      • apply

        public JsonValue apply​(JsonValue target)
        Description copied from interface: JsonMergePatch
        Applies the JSON Merge Patch to the specified target. The target is not modified by the patch.
        Specified by:
        apply in interface JsonMergePatch
        Parameters:
        target - the target to apply the merge patch
        Returns:
        the transformed target after the patch