pub fn serialize_to_string<T: Serialize>(value: &T) -> Result<String, Error>Expand description
Serialize any type to JSON string.
Strict serialization - returns error if serialization fails. Used in persistence operations where we control the data types.
ยงErrors
Returns serde_json::Error if serialization fails.