Mar-10-2022, 10:30 AM
I have this code.
import json with open('data5.json', 'r') as myfile: data = myfile.read() data_2 = data.replace('[', ' ') data_3 = data_2.replace(']', ' ') print(data_3)My variable data_3 is like that:
{"Manufacturer": "VMware, Inc.", "Model": "VMware7,1", "Name": "DC01"} , {"Index": "1", "IPAddress": "192.168.1.240,fe80::350e:d28d:14a5:5cbb" }I want to parse this. I want to get the value of Manufacturer or Model or Name. How can i do it?