private static String getzJsonPatch(Object source, Object target) throws HyscaleException {
		ObjectMapper mapper = ObjectMapperFactory.jsonMapper();
		Gson gson = new Gson();
		JsonNode patch;
		try {
			patch = JsonDiff.asJson(mapper.readTree(gson.toJson(source)), mapper.readTree(gson.toJson(target)));
			return mapper.writeValueAsString(patch);
		} catch (IOException e) {
			throw new HyscaleException(e, DeployerErrorCodes.ERROR_WHILE_CREATING_PATCH);
		}
	}
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