add newline to the end of the json file