- Unable to serialize datetime.datetime object in dictionary to JSON using python and trac
- TypeError: datetime.date(2012, 5, 23) is not JSON serializable
- TypeError: date_handler() takes exactly 1 argument (2 given)
- def date_handler(obj):
- return obj.isoformat() if hasattr(obj, 'isoformat') else obj