Switch for raw or structured output