why does editing json files and then saving them in the default text editor that comes with linux mint seem to corrupt them?