serialize

Function serialize 

Source
pub fn serialize<T, S>(value: &T, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer, T: Serialize,
Expand description

Serialize as a JSON object within a string.