@db_session
def select_allvalid_users():
users = select(x for x in User)
print(type(users))
print(users)
return users
[User[1], User[2]]
usr = select_allvalid_users()
return jsonify(user = usr)
TypeError: User[1] is not JSON serializable
usr = select_allvalid_users()
return jsonify({"user":usr})