dumps encoding python code example Example: python json write utf 8 with open('speechbase.json', 'w') as jsonfile: json.dump(DATA, jsonfile, indent = 4)