diff --git a/UI/PreferencesUI/UIxJSONPreferences.m b/UI/PreferencesUI/UIxJSONPreferences.m index 0b18a97b8..de9055939 100644 --- a/UI/PreferencesUI/UIxJSONPreferences.m +++ b/UI/PreferencesUI/UIxJSONPreferences.m @@ -33,14 +33,14 @@ @implementation UIxJSONPreferences -- (WOResponse *) _makeResponse: (NSString *) jsonText +- (WOResponse *) _makeResponse: (NSUserDefaults *) defaults { WOResponse *response; response = [context response]; [response setHeader: @"text/plain; charset=utf-8" forKey: @"content-type"]; - [response appendContentString: jsonText]; + [response appendContentString: [defaults jsonRepresentation]]; return response; } @@ -51,7 +51,7 @@ defaults = [[context activeUser] userDefaults]; - return [self _makeResponse: [defaults jsonRepresentation]]; + return [self _makeResponse: defaults]; } - (WOResponse *) jsonSettingsAction @@ -60,7 +60,7 @@ settings = [[context activeUser] userSettings]; - return [self _makeResponse: [settings jsonRepresentation]]; + return [self _makeResponse: settings]; } @end