python json change line

JavaScript
file.write("\n")
Source

Also in JavaScript: