diff --git a/src/cmd_se_ecdh.rs b/src/cmd_se_ecdh.rs index 0a1d487..38d55fb 100644 --- a/src/cmd_se_ecdh.rs +++ b/src/cmd_se_ecdh.rs @@ -79,8 +79,9 @@ impl Command for CommandImpl { if json_output { let mut json = BTreeMap::<&'_ str, String>::new(); - json.insert("shared_secret_hex", dh_hex); + + println!("{}", serde_json::to_string_pretty(&json).unwrap()); } else { information!("Shared secret: {}", dh_hex); }