Output valid JSON for multi-domain CLI commands