⬅︎ Back to From Postgres to JSON strings
How to do this if we have date column in postgres? it gives error: TypeError: Object of type time is not JSON serializable
You need a special serializer for the JSON-to-Python or the Python-to-JSON. See https://stackoverflow.com/questions/11875770/how-can-i-overcome-datetime-datetime-not-json-serializable for tips.
Comment
How to do this if we have date column in postgres? it gives error: TypeError: Object of type time is not JSON serializable
Replies
You need a special serializer for the JSON-to-Python or the Python-to-JSON.
See https://stackoverflow.com/questions/11875770/how-can-i-overcome-datetime-datetime-not-json-serializable for tips.