阅读背景:

json。倾倒“类型错误:{…}不是JSON可序列化的”表面上有效的对象?

来源:互联网 

Background: I am writing a python program which should manage my music files. It crawls directories and puts the files and their meta data (via mutagen), encoded in JSON, in a file as a simple "database". I have the directory searching fine, but when I try and save the database, or encode to JSON, it throws a "TypeError: {...} is not JSON serializable" (the ... are some keys and values from a dict, more on that below): I am writing a python program which




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: