title: How to create a Python dictionary with double quotes as default quote format?
body: <p>I am trying to create a python dictionary which is to be used as a java script var inside a html file for visualization purposes. As a requisite, I am in need of creating the dictionary with all names inside double quotes instead of default single quotes which Python uses. Is there an easy and elegant way to achieve this. </p>
  
  <pre><code>    couples = [
                 ['jack', 'ilena'], 
                 ['arun', 'maya'], 
                 ['hari', 'aradhana'], 
                 ['bill', 'samantha']]
      pairs = dict(couples)
      print pairs
  </code></pre>
  
  <p><strong>Generated Output:</strong></p>
  
  <pre><code>{'arun': 'maya', 'bill': 'samantha', 'jack': 'ilena', 'hari': 'aradhana'}
  </code></pre>
  
  <p><strong>Expected Output:</strong></p>
  
  <pre><code>{"arun": "maya", "bill": "samantha", "jack": "ilena", "hari": "aradhana"}
  </code></pre>
  
  <p>I know, <code>json.dumps(pairs)</code> does the job, but the dictionary as a whole is converted into a string which isn't what I am expecting.</p>
  
  <p><strong>P.S.:</strong> Is there an alternate way to do this with using json, since I am dealing with nested dictionaries.</p>