to_string

Function to_string 

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

Serialize a value to a JSON string.

ยงErrors

Returns an error if serialization fails.