pub fn to_string<T: Serialize + ?Sized>(value: &T) -> Result<String, Error>
Serializes a value to JSON.
This uses the default SerializerConfig.
SerializerConfig