Python datetime is not json serializable

Describes the cause and action for error messages.


Error Message(English):
datetime is not json serializable

Resolution


関連リンク


[Python] dateやdatetimeをjson.dumpでエラーなく出力する - YoheiM .NET
https://www.yoheim.net/blog.php?q=20170703

How to serialize a datetime object as JSON using Python?
https://code-maven.com/serialize-datetime-object-as-json-in-python

python - How to overcome "datetime.datetime not JSON serializable ...
https://stackoverflow.com/questions/11875770/how-to-overcome-datetime-datetime-not-json-serializable・・・

datetime.datetime is not JSON serializable - Stack Overflow
https://stackoverflow.com/questions/35869985/datetime-datetime-is-not-json-serializable

TypeError: Object of type 'datetime' is not JSON serializable ...
https://stackoverflow.com/questions/52742173/typeerror-object-of-type-datetime-is-not-json-serializa・・・

TypeError: datetime.datetime is not JSON serializable
https://stackoverflow.com/questions/50763186/typeerror-datetime-datetime-is-not-json-serializable

How to write and read datetime dictionaries
https://stackoverflow.com/questions/44630103/how-to-write-and-read-datetime-dictionaries

TypeError: datetime.datetime() is not JSON serializable
https://stackoverflow.com/questions/44158505/typeerror-datetime-datetime-is-not-json-serializable

API - datetimeをJSONでserializableできない問題|teratail
https://teratail.com/questions/146640

mysqlから持って来たデータをjsonで返すapiをflaskで作る - Qiita
https://qiita.com/takuya-andou/items/59c493227629f63a9ddc



Name:
Comment:



[return to Python エラーコード一覧]