title: How to create this type of json
body: <p>I have a tuple like </p>
  
  <pre><code>mytuple = ('somevalue', 99999, 'jjj', 99)
  </code></pre>
  
  <p>from this tuple I want to make json like </p>
  
  <pre><code>{
  "key1":'somevalue',
  "key2":'99999,
  "key3":'jjj',
  "key4":99
  }
  </code></pre>
  
  <p>the number of keys are not constant they can change and also value and  number of keys are equal to number of objects</p>
  
  <p>I tried as </p>
  
  <pre><code>data = {}
          for i in range(0,maxLen):
              key = keydata[0][i]
              value = valuedata[0][i]
              data[key] = data[value]
  </code></pre>
  
  <p>I am getting key error while creating json</p>