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
im
For Python 3* users: in addition to @Martijn Pieters answer,
dictonary.iteritems() is not valid, replace it with dictionary.items() :
dictonary.iteritems()
dictionary.items()
json.dumps({str(k): v for k, v in data.items()})