def view_user(id): # Returns user data (not the password) user = User.get_user_by_id(id) data = User.get_json(user) return json.dumps(data)