def getAll(): print("GETTING ALL USER @ USER ROUTES") listUsers = User.get_all() newUserList = [] # SERIALIZE EACH OBJECT INSIDE A LIST for user in listUsers: userJSON = User.as_dict(user) newUserList.append(userJSON) # print("HELLO LADIES! LET'S SEE USERS' LIST \n\n") # print(newUserList) response['status'] = 200 response['message'] = 'FETCH ALL SUCCESS' response['result'] = newUserList return jsonify(response)