2020-11-02から1日間の記事一覧

辞書ー>JSON における datetime

Python の json dumps() と dump() は、対象の辞書、Dictionary に、datetime を含んでると TypeError: Object of type 'datetime' is not JSON serializable でシリアライズできません。dumps の default= 属性で変換用のハンドラを指定して置換えないとな…