Add newline at EOF for to_json

Less trouble! :+1: :koala: 

/cc @zendesk/quokka