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