//! Export data as JSON using serde.
//!
//! ```sh
//! cargo run --example json_export
//! ```

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let prices = nemweb::dispatch().fetch().await?;
    let json = serde_json::to_string_pretty(&prices)?;
    println!("{json}");
    Ok(())
}
