Run
import json myTuple = ({'a': 54}, {'b': 41, 'c':87}) jsonString = json.dumps(myTuple, indent=4) print(jsonString)
Output