The structure is list of list with dictionary inside.
>>> data[0] [{'Manufacturer': 'VMware, Inc.', 'Model': 'VMware7,1', 'Name': 'DC01'}] >>> data[0][0] {'Manufacturer': 'VMware, Inc.', 'Model': 'VMware7,1', 'Name': 'DC01'} >>> type(data[0][0]) <class 'dict'> >>> >>> data[0][0]['Name'] 'DC01' # Or >>> data[0][0].get('Name') 'DC01'In a loop as i showed before can do it like this.
>>> for item in data: ... print(item[0].get('Name', 'Not found in list')) ... DC01 Not found in list DC01So using dictionary
.get()
it dos not stoop loop with error,and get both Name.>>> for item in data: ... print(item[0]['Name']) ... DC01 Traceback (most recent call last): File "<interactive input>", line 2, in <module> KeyError: 'Name' # Fix >>> for item in data: ... try: ... print(item[0]['Name']) ... except KeyError: ... pass ... DC01 DC01