print len of json string

This commit is contained in:
Robin Müller 2022-12-18 16:37:33 +01:00
parent 4209c9a2a7
commit fbd5c27efc
No known key found for this signature in database
GPG Key ID: FC76078F520434A5

View File

@ -153,5 +153,5 @@ pub fn main() {
mgm_vals: [0x1f1f, 0x2f2f, 0x3f3f],
};
let mgm_as_json_str = serde_json::to_string(&mgm_hk_group_validity).unwrap();
println!("{}", mgm_as_json_str);
println!("JSON string with length {}: {}", mgm_as_json_str.len(), mgm_as_json_str);
}