bijux-dag-app 0.4.1

Application orchestration and response-shaping layer for Bijux DAG command surfaces.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde_json::Value;

pub(crate) fn print_pretty_json(value: &Value) {
    println!("{}", serde_json::to_string_pretty(value).unwrap());
}

#[cfg(test)]
mod tests {
    use super::print_pretty_json;

    #[test]
    fn renderer_does_not_panic_for_valid_json() {
        let value = serde_json::json!({"status":"ok"});
        print_pretty_json(&value);
    }
}