//! Example: emit a single JSON envelope to stdout.
//!
//! Run with:
//!
//! ```text
//! cargo run --example json_output -- "https://youtu.be/dQw4w9WgXcQ"
//! ```
//!
//! The example passes `--json` to [`Cli::parse_from`]. The subtitle
//! body is then written as a single JSON object with `video_id`,
//! `language`, `format`, `content`, `bytes`, `duration_ms`, and
//! `source` keys.
use Parser;
use ExitCode;
use ;
async