to_string

Function to_string 

Source
pub fn to_string<T>(value: &T) -> Result<String>
where T: ?Sized + Serialize,
Expand description

Serialize the given data structure as a String of JSON.

Equivalent to serde_json::to_string but with errors extended with serde_path_to_error.

See serde_json::to_string for more documentation.