{"author_name":"BioErrorLog","blog_url":"https://en.bioerrorlog.work/","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/B/BioErrorLog/20201213/20201213183728.png","published":"2025-02-27 15:19:24","version":"1.0","width":"100%","height":"190","categories":["Python","AWS"],"provider_name":"Hatena Blog","type":"rich","url":"https://en.bioerrorlog.work/entry/python-datetime-not-json-serializable-error","provider_url":"https://hatena.blog","description":"This article summarizes how to fix the following error that occurs when using Python's json module for JSON conversion: \"Object of type datetime is not JSON serializable\" Introduction Background Solutions Preliminary: The default Parameter Solution 1: Convert to String Solution 2: Custom Conversion \u2026","title":"Fix Error: \"Object of type datetime is not JSON serializable\" in Python","author_url":"https://blog.hatena.ne.jp/BioErrorLog/","blog_title":"BioErrorLog Tech Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fen.bioerrorlog.work%2Fentry%2Fpython-datetime-not-json-serializable-error\" title=\"Fix Error: &quot;Object of type datetime is not JSON serializable&quot; in Python - BioErrorLog Tech Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}