Just `return jsonify(result)` should work fine?