Fix json file formatting on save().