TypeError: Object of type 'datetime' is not JSON serializable (with serialize function)
TypeError: Object of type 'datetime' is not JSON serializable (with serialize function) Question: I’m I getting this TypeError: Object of type ‘datetime’ is not JSON serializable error, even though I have a specific serialize function described in my model. This is my code: Flask route (rendered by React): menus.py @menus_bp.route(‘/menus’, methods=[‘GET’, ‘POST’]) def menus(): response_object …