class JsonUtils {

    public static String getJsonNodeValue(String jsonStr, String keys) {
        try {
            Object rawValue = getJsonRawValue(jsonStr, keys, true);
            if (rawValue == null) {
                return null;
            } else {
                if (rawValue instanceof String) {
                    logger.debug("getJsonNodeValue(): the raw value is a String Object={}", rawValue);
                    return (String) rawValue;
                } else {
                    logger.debug("getJsonNodeValue(): the raw value is NOT a String Object={}", rawValue);
                    return rawValue.toString();
                }
            }
        } catch (Exception e) {
            logger.debug("getJsonNodeValue(): unable to parse json to retrieve node for field={}. Exception was: {}",
                    keys, e.toString(), e);
        }
        return null;
    }

}