title: How to convert JSON array of key-value pairs to JSON object?
body: <p>I get the data like below from the website:</p>
  
  <pre><code>{
    ...
    u'rows':[
      [
        u'mail@example.com',
        u'74'
      ],
      [
        u'mail2@example.com',
        u'1'
      ],
      [
        u'mail3@example.com',
        u'1'
      ],
      ...
    ],
  </code></pre>
  
  <p>I've shown just the data I need. How can I convert it to json like:</p>
  
  <pre><code>{u'mail@example.com': 74, u'mail2@example.com': 1, u'mail3@example.com': 1, ...}
  </code></pre>
  
  <p>I can read elements one by one:</p>
  
  <pre><code>if response.get('rows'):
      total = 0
      for row in response.get('rows'):
          total += int(row[1])
          logging.info(row[0]+": "+row[1])
  </code></pre>
  
  <p>But not sure what should be done next. Don't think I should generate just the string.</p>