2016-10-14 json.dumps(dic)を実行すると「json.dumps typeerror object of type 'bytes' is not json serializable」エラー AI 原因はdictの中にbytes型オブジェクトが含まれているため。以下のようにしてstrにしてから渡すと直った。 dic["key"] = str(bytes_item) 参考: stackoverflow.com