import json


def load_default_data() -> dict[str, str]:
    """Finds and opens a .json file with streamer data.

    Reads from the file and assigns the data to streamer_list.

    Args:
        None
    
    Returns:
        A dict mapping keys (Twitch usernames) to their corresponding URLs.
        Each row is represented as a seperate streamer. For example:

        {
            "GMHikaru":"https://www.twitch.tv/GMHikaru"
        }
    """

    with open("statum\static\streamers.json", "r") as default_streamers:
        streamer_list: dict[str, str] = json.load(default_streamers)
        default_streamers.close()
        return streamer_list