with open(outputfile, 'w') as sw:
        sw.write(json.dumps(mergedict, separators=(',', ': '),