【发布时间】:2020-08-11 03:28:41
【问题描述】:
我正在阅读 json.bz2 文件。
代码
with open(full_filename, 'r', encoding='utf-8', errors='ignore') as the_file:
data = json.load(the_file)
JSONDecodeError:预期值:第 1 行第 1 列(字符 0)
我尝试在谷歌上搜索解决方案,但没有一个有效。
【问题讨论】:
-
你没有做任何事情来解压它。
标签: python json python-3.x utf-8 decode