ssb_json_msg_data::json
pub fn to_vec<T: ?Sized>( value: &T, compact: bool) -> Result<Vec<u8>, EncodeJsonError> where T: Serialize,
Serialize the given data structure as JSON into a JSON byte vector.