use encoder::json::Encode; fn main() { let mut buf = vec![]; "Hello, δΈ–η•Œ! πŸ‘‹".encode(&mut buf); assert_eq!(String::from_utf8_lossy(&buf), r#""Hello, δΈ–η•Œ! πŸ‘‹""#); assert_eq!("Hello, δΈ–η•Œ! πŸ‘‹".stringify(), r#""Hello, δΈ–η•Œ! πŸ‘‹""#); }