code: public static HashMap<String, String> getMapFromJSONPath(JSONObject record, String path) {
          return getObjectFromJSONPath(record, path);
      }
docs: Gets a Map of attributes from a json object given a path to traverse.
  
  @param record a JSONObject to traverse.
  @param path   the json path to follow.
  @return the attributes as a {@link HashMap}, or null if it was not found.