title: parsing json with python - string indices must be integers
body: <p>New to python and I am trying to write a script to parse a json file to only print out the id and state of any of the values where the state is not "STARTED" and exit code 2. And print nothing if they all say STARTED and exit 0.</p>
  
  <p>However, I am getting the error "string indices must be integers" Any suggestions on an issue with how I am trying to read this json?</p>
  
  <pre><code>import json
  jsonFile = open('topics.json', 'r')
  data = json.load(jsonFile)
  
  for check in data['rows']:
      if check['state'] is not "STARTED":
          print check['id']['state']
  </code></pre>
  
  <p>and here is an example of my topics.json</p>
  
  <pre><code>{
    "page": 0,
    "page_size": 100,
    "total_pages": 10,
    "total_rows": 929,
    "headers": [
      "*"
    ],
    "rows": [
      {
        "id": "168",
        "state": "STARTED"
      },
      {
        "id": "169",
        "state": "FAILED"
      },
      {
        "id": "170",
        "state": "STARTED"
      }
    ]
  }
  </code></pre>