human
Saving dictionary whose keys are tuples with json, python
assistant
Here is some code to serialize dictionary `data` and its keys to a JSON formatted string

json.dumps({str(k): v for k, v in data.items()})

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.