小编Zai*_*eed的帖子

类型错误:bool_ 类型的对象不是 JSON 可序列化的

我正在尝试使用布尔格式的值之一将字典写入 json 文件。当我尝试运行我的代码时出现以下错误。

raise TypeError(f'Object of type {o. class . name } ' TypeError: object of type bool_ is not JSON serializable

为此,我目前正在使用 Python。

python json numpy python-3.x

15
推荐指数
2
解决办法
7739
查看次数

标签 统计

json ×1

numpy ×1

python ×1

python-3.x ×1