def write_permissions_to_file(permissions, perm_path="./permissions.json"):
    """
    Write the permissions to a JSON file.

    Args:
        permissions (dict): A dictionary containing the permissions.
        perm_path (str): The path to the permissions JSON file.

    """
    with open(perm_path, "w") as file:
        json.dump(permissions, file, indent=4)

    Write the permissions to a JSON file.

    Args:
        permissions (dict): A dictionary containing the permissions.
        perm_path (str): The path to the permissions JSON file.

    
llama-index-packs/llama-index-packs-secgpt/llama_index/packs/secgpt/permission.py