python write json to file with newlines code example Example: python json change line file.write("\n")