import ipaddress import json #hashbleh = [{'name':'sara', 'number':46}, {'name':'ale', 'number':6}, {'name':'ian', 'number':10}, #{'name':'ale', 'number':32}, {'name':'sara', 'number':22}, {'name': 'marisa', 'number':90}, #{'name':'ian', 'number':30}, {'name':'Kevin', 'number':34}] #lista de hashes path = '/Users/Sara/Documents/Univ Classes/Investigacion/newFlow.txt' myFile = open(path, 'r') flow = myFile.read() ip = json.loads(flow) print(type(ip))