pub fn to_json<T>(value: &T) -> Result<Bytes> where
    T: ?Sized + Serialize
Expand description

Serialize a type to json.