load_json_from_url_or_path

load_json_from_url_or_path(url: str, name: str) dict | None[source]

Load json from URL or path.

Parameters:
  • url (str) – URL to get the json from.

  • name (str) – Name of the file.

Returns:

A dictionary or None.

Return type:

Union[dict,None]