add whitespace to json when saving and updating. closes #1