title: Accessing a list contained in a JSON object with Python
body: <pre><code>testVar = {
    "date": 1520053431,
    "location": {
    "lat": 39.349887,
    "lng": -82.116147
    },
    "items": [
      {
        "macAddress": "98:90:96:9C:94:6C",
        "manufacturer": "intel"
      },
      {
    "macAddress": "98:90:96:9C:94:52",
    "manufacturer": "intel"
      },
      {
        "macAddress": "98:90:96:90:94:52",
        "manufacturer": "intel"
      }
    ]
  }
  
  print(testVar.items[0])
  </code></pre>
  
  <p>I have this JSON object, and I'm trying to access the items list, but this produces the error:</p>
  
  <pre><code>TypeError: 'builtin_function_or_method' object is not subscriptable
  </code></pre>
  
  <p>I tried parsing it with json.loads and json.dumps but neither of those worked either.</p>