my guess json.dumps({'False': 3, 'false': 2, False: 1, 0: 0}) eval to something like {‘False’:3, ‘false’:2, false:0}it merges the last two keys together and takes the last value which is 0, and load would merge the false 2 with 0... giving{‘False’:3', ‘false’:0}`