//! JSON rendering of the full IR.
use crateDocument;
/// Serialize the entire [`Document`] to pretty-printed JSON.
///
/// The IR derives `Serialize` and contains only serializable types, so the
/// pretty path cannot realistically fail; on the impossible error we fall back
/// to compact `to_string` rather than panic.