how to write to json in a new line each time code example Example: python json change line file.write("\n")