(已解决)json.decoder.JSONDecodeError: Extra data: line 1 column 47 (char 46)

  • 问题描述

    *json.load(file)*出现上述错误。

    原因是file中包含不止一条记录。json.load函数只能解析一条记录。

  • 解决方案

    将多条记录强行封装为一条,便可读取。

  • References

  1. json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 190)
发布了857 篇原创文章 · 获赞 1291 · 访问量 92万+

猜你喜欢

转载自blog.csdn.net/The_Time_Runner/article/details/105353453
今日推荐