title: Python: How to convert a long number into string?
body: <p>I was trying to transform this long number data inside tuple into a string so I can preserved its value when I send it to JSON (The file with this data inside is named b.json)</p>
  
  <pre><code>"ecc": [
          79849177969901016848164770310957289409900866592060952979899491148125256206126, 
          80012691714024297247210932953164632591330351085279802419411702853992977368435
      ]
  </code></pre>
  
  <p>So I try to run this command in Python</p>
  
  <pre><code>with open('b.json', 'r') as editfile:
            data2 = json.load(editfile)
        tmp = data2["ecc"]
        tmp = [tuple(str(x) for x in tup) for tup in tmp]
        data2["ecc"] = tmp
  </code></pre>
  
  <p>But I got this result</p>
  
  <pre><code>Traceback (most recent call last):
    File "temp-hum-log.py", line 94, in &lt;module&gt;
      tmp = [tuple(str(x) for x in tup) for tup in tmp]
  TypeError: 'long' object is not iterable
  </code></pre>
  
  <p>So what should I do to convert this long number into string?</p>