Avatar 👨‍💻

Dapeng Zhang

Full-Stack Engineer | System Architect

  1. Home
  2. Archives
  3. Tags
  4. Search
    1. Dark Mode
技术

Python json.loads fails with `ValueError: Invalid control character at: line 1 column 33 (char 33)`

Jul 22, 2025 1 minute read

Python json.loads fails with ValueError: Invalid control character at: line 1 column 33 (char 33)

这种问题的正确解决办法是

由原来的

json.loads(s)

改为

json.loads(s,strict=False)
Python
CC BY-NC-ND 4.0

Related content

Featured image of post Scrapy 遇到 Filtered duplicate request 结束运行

Scrapy 遇到 Filtered duplicate request 结束运行

Flask 之 Gunicorn启动应用程序

Flask之更新表结构

Python的 str 和 unicode

Scrapy Spider分享

© 2026 Dapeng Zhang
Built with Hugo
Theme Stack designed by Jimmy