Serialize settings with JSON