add a new line required for json file python code example Example: python json change line file.write("\n")