0

My list of tuples is the result from a MySQL cursor.fetchall()

list= [(103L, 'keerthi', 3000L, 'chennai', 30L, 300L), (102L, 'ashwini', 2000L, 'chennai', 20L, 200L), (101L, 'uma', 1000L, 'chennai', 10L, 100L)]

I tried

json_string = json.dumps(list) 

the output remains the same

[(103L, 'keerthi', 3000L, 'chennai', 30L, 300L), (102L, 'ashwini', 2000L, 'chennai', 20L, 200L), (101L, 'uma', 1000L, 'chennai', 10L, 100L)]

Pradeep
  • 1
  • 2

0 Answers0