code: public static String getStringFromJSONPath(JSONObject record, String path) {
          final Object object = getObjectFromJSONPath(record, path);
          return object == null ? null : object.toString();
      }
docs: Gets a string attribute from a json object given a path to traverse.
  
  @param record a JSONObject to traverse.
  @param path   the json path to follow.
  @return the attribute as a {@link String}, or null if it was not found.