[][src]Function ssb_json_msg_data::json::to_vec

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.