Custom plugin with Bottle to return datetime as JSON?
Figured out this really simple solution which is also mentioned in the bugtracker:
from bottle import install, JSONPlugin...if __name__ == '__main__': app = Bottle(autojson=False) app.install(JSONPlugin(json_dumps=lambda s: jsonify(s, cls=MyJsonEncoder)))