title: Python: 'unicode' object has no attribute 'iteritems'
body: <p>In my app using Python 2.6.9 I have this incoming JSON as a unicode string:</p>
  
  <pre><code>{"devices": "{1540702298: u\"{'on': u'True', 'group': '2', 'time': u'2015-06-04 16:37:52', 'value': u'74.1', 'lastChange': u'2015-06-05 09:28:10'}\"}"}
  </code></pre>
  
  <p>I have tried in various ways to parse it but I still get the same error...</p>
  
  <p>For example:</p>
  
  <pre><code>a = unicode({"devices": "{1540702298: u\"{'on': u'True', 'group': '2', 'energyAccumBaseTime': u'2015-06-04 16:37:52', 'sensorValueRaw': u'74.1', 'lastChange': u'2015-06-05 09:28:10', 'energyAccumTotal': u'1.3', 'sensorValueUi': u'74.1'}\"}"})
  
  b = json.loads(a)
  
  print b['devices'] # all good I get the contents...
  </code></pre>
  
  <p>but when I do...</p>
  
  <pre><code>for k, v in b['devices'].iteritems():
  
  print k
  </code></pre>
  
  <p>I get the error:  </p>
  
  <blockquote>
    <p>'unicode' object has no attribute 'iteritems'</p>
  </blockquote>
  
  <p>How can I parse this incoming JSON in full?</p>