public static <T> Object getJsonPatch(T source, T target, Class<T> klass) throws HyscaleException {
		if ((klass.isInstance(source) && klass.isInstance(target))) {
			String patchString = getzJsonPatch(source, target);
			return deserialize(patchString, JsonElement.class);
		}
		return null;
	}
Creates Json diff for patch based on source and target
@param <T> 
@param source
@param target
@param klass
@return patched object, null if source and target are not instances of same class
@throws HyscaleException
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/util/K8sResourcePatchUtil.java