class JsonUtils {

    public static String getJsonValueForKey(String jsonStr, String key) {

        try {
            JSONObject jsonObj = new JSONObject(jsonStr);
            return getJsonValueForKey(jsonObj, key);
        } catch (Exception e) {
            logger.debug("getJsonValueForKey(): unable to parse json to retrieve value for field={}. Exception was: {}",
                    key, e.toString(), e);
        }
        return null;
    }

}