diff --git a/src/main/java/com/github/fge/jsonpatch/JsonPatch.java b/src/main/java/com/github/fge/jsonpatch/JsonPatch.java index 178ab867..ead86115 100644 --- a/src/main/java/com/github/fge/jsonpatch/JsonPatch.java +++ b/src/main/java/com/github/fge/jsonpatch/JsonPatch.java @@ -31,6 +31,7 @@ import com.google.common.collect.ImmutableList; import java.io.IOException; +import java.util.ArrayList; import java.util.List; /** @@ -148,6 +149,15 @@ public JsonNode apply(final JsonNode node) return ret; } + + /** + * Return the operations that are part of this patch + * + * @return the operations of the patch + */ + public List getOperations() { + return new ArrayList(operations); + } @Override public String toString()