不确定为什么我的 JSON 文件显示为随机字符,可以使用帮助将其转换为可读文本

Not sure why my JSON file is appearing as random characters, could use help getting it to readable text

大家好,我正在为我所在的 rp 论坛创建一个 discord 机器人,主要是尝试使用 web scraping 自动更新成员列表。我使用的网络抓取工具称为 ParseHub,它有一个 api 允许您将收集的数据提取为 json。当我在 postman 中创建一个 get 请求时,它完全可读,但是当我尝试在我的 c# 应用程序中实现它时,返回的字符串是上面显示的输出。我对处理 http 请求几乎是全新的,所以我很可能搞砸了一些事情,但我的想法是从 api 中提取列表。下面我列出了到目前为止我使用的代码,我还将文档链接到 api。 (我用基本文本替换了令牌和 api 键,但除此之外 url 是我认为它应该看起来的样子)

https://www.parsehub.com/docs/ref/api/v2/#run-a-project

[Command("RefreshLists")]
        public async Task RefreshLists(CommandContext ctx)
        {
            try
            {
                using (HttpClient httpClient = new HttpClient())
                {
                    using (var response = await httpClient.GetAsync("https://parsehub.com/api/v2/projects/tokengoeshere/last_ready_run/data?api_key=apikeygoeshere&format=json"))
                    {
                        if (response != null)
                        {
                            var responseString = await response.Content.ReadAsStringAsync();
                            Console.WriteLine(responseString);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }

没关系,解决了。问题出在 gzip 压缩上。