python json_dump code example Example: python json dump import json with open("data_file.json", "w") as write_file: json.dump(data, write_file)