title: Iterating through a JSON object after first level
body: <p>I would like to print key and value on each line so it would be.
  key1, value1 then key2, value2 etc</p>
  <p>My current code prints:</p>
  <pre><code>The key and value are data = [{'key1': 'value1', 'key2': 'value2', 'key3': 'value3'}]
  </code></pre>
  <p>instead of <code>&quot;The key and value are key1 = value1&quot;</code> etc</p>
  <pre><code>import json
  
  jsonString = '{ &quot;data&quot;: [ {&quot;key1&quot;:&quot;value1&quot;,&quot;key2&quot;:&quot;value2&quot;,&quot;key3&quot;:&quot;value3&quot;} ] }'
  jsonObject = json.loads(jsonString)
  
  for key in jsonObject:
      value = jsonObject[key]
      print(&quot;The key and value are {} = {}&quot;.format(key, value))
  </code></pre>