pub(crate) fn serialized_output<T: Serialize>( format: OutputFormat, toon: &str, payload: &T, ) -> Result<String, CliError>
Serialize output exactly as the CLI will emit it.