import json


def load_stats(filename):
    """
    Loads statistics.
    :param filename: File to be loaded.
    :return: users, user_stats, global_stats arrays
    """
    with open(filename, 'r', encoding='utf-8') as jsonfile:
        data = json.load(jsonfile)
        return data["users"], data["user_stats"], data["global_stats"]