use crate::domain::{ContextBundle, WakeupPacket};

pub fn render(bundle: &ContextBundle) -> String {
    serde_json::to_string_pretty(bundle).unwrap_or_else(|_| "{}".to_string())
}

pub fn render_wakeup(packet: &WakeupPacket) -> String {
    serde_json::to_string_pretty(packet).unwrap_or_else(|_| "{}".to_string())
}
