append newline to json files