save settings to json