pub fn to_json_string<T>(value: &T) -> Result<String>where T: ?Sized + Serialize,
Converts the value to a JSON string.