Just `return jsonify(<out dict>)` directly to save the assignment.