class JsonUtils {

    public static String updJsonValue(String jsonStr, String keys, String newValue) {
        // only attempt to modify the key/value pair if it exists
        if (jsonValueExists(jsonStr, keys)) {
            return putJsonValue(jsonStr, keys, newValue);
        } else {
            logger.debug("updJsonValue(): JSON update failed, no value exists for key={}", keys);
            return jsonStr;
        }
    }

}