Use flask.json.dumps instead of json.dumps to hook into app.json_encoder mechanism