title: Saving dictionary whose keys are tuples with json, python
body: <p>I am writing a little program in python and I am using a dictionary whose (like the title says) keys and values are tuples. I am trying to use json as follows</p>
  
  <pre><code>import json
  data = {(1,2,3):(a,b,c),(2,6,3):(6,3,2)}
  print json.dumps(data)
  </code></pre>
  
  <p>Problem is I keep getting <code>TypeError: keys must be a string</code>.</p>
  
  <p>How can I go about doing it? I tried looking at the python documentation but didn't see any clear solution. Thanks!</p>