Function to_json

Source
pub fn to_json<T: Serialize>(value: &T) -> Result<String>
Expand description

Serialize a value to a JSON string.