Changing preferences as per Json spec