There is a dictionary like this:
thisdict = {'12': [[1, 970000009], [3, 990000547], [9, 900000007]],
'3': [[2, 970022209], [3, 990000547]],
'32': [[4, 94042209], [5, 40547]],
'6575': [[3, 94334009], [2, 923200547], [6, 7807], [7, 98807], [8, 8887]],
...
}
How is it possible to save this dictionary into a json file?
I tried the below code but it does not work:
import json
with open('results.json', 'w') as fp:
json.dump(thisdict, fp)
This is the error in output:
Object of type int64 is not JSON serializable
What is the solution to fix this error?