title: Python tuple to json structure
body: <p>I have in Python this dictionary:</p>
  
  <pre><code>[('157.55.39.64', 4), ('188.165.15.192', 2), ('1.165.15.192', 1)]
  </code></pre>
  
  <p>where the first field is an IP adress and the other one represents how many times is present in a file.</p>
  
  <p>I would like to have a json representation of it like this one:</p>
  
  <pre><code>[{"ip":"157.55.39.64","times":4},
    {"ip":"188.165.15.192","times":2},
     {"ip":"1.165.15.192","times":1}]
  </code></pre>
  
  <p>I tried using jsonify(dictionary), but I get this:</p>
  
  <pre><code>{"157.55.39.64":4, "188.165.15.192": 2, "1.165.15.192":1}
  </code></pre>
  
  <p>which is only one json item. I don't know either how to put the strings "ip" and "times" in order to appear in the json file.</p>
  
  <p>Any help?</p>