So I am saving data as a json file that is Structured like so:
{
"Users": [
{
  "BOB": [
    {
      "Computer Name": "Bob Pc",
      "Manufacturer": "Dell Inc.",
      "Make": "Precision Tower 3620",
      "Os": "Microsoft Windows 10 Pro",
      "Cpu": "Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz",
      "Memory": "8589934592",
      "Slots": "4",
      "Used Slots": "1"
    }
  ] 
},
{
  "Sally": [
    {
      "Computer Name": "Sally PC",
      "Manufacturer": "Dell Inc.",
      "Make": "Precision Tower 3620",
      "Os": "Microsoft Windows 10 Pro",
      "Cpu": "Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz",
      "Memory": "8589934592",
      "Slots": "4",
      "Used Slots": "1"
    }
      ]
}
  ]
}
If I want to print the whole thing I can do
with open(filename) as f:
    data = json.load(f)
    print(data)
That will do it but now what if I want to print all the info in "Bob"?
I Tried:
print(data["Users"]["Bob"])
Which gives an error list indices must be integers or slices, not str
 
     
    