利用bson解决 type error 报错问题.

# 序列化
from bson import json_util
import json
aa = json.dumps(anObject, default=json_util.default)


# 反序列化 (deserialization):
json.loads(aa, object_hook=json_util.object_hook)

 

相关文章:

  • 2022-12-23
  • 2021-09-05
  • 2022-01-08
  • 2021-12-22
  • 2021-08-14
猜你喜欢
  • 2021-11-06
  • 2022-12-23
  • 2021-11-14
  • 2021-09-29
  • 2021-10-25
相关资源
相似解决方案