I have a highscore that as the structure like this:
[(300, 'Test'), (400, 'Test1'), (500, 'Test2'), (500, 'Test2'), (600, 'Test2'), (5, 'Test2'), (500, 'Test2'), (600, 'Test2'), (300, 'Test2'), (100, 'Test2')]
and I need to get the JSON format for it like this :
{"Test":300, "Test1":400.....}
But how hard I try I only get results like this :
[["Test":300],["Test1":400],....]
How can I get the json format right? I am using json.dumps(highscore) also tried son.dumps({highscore})