Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern crate serde_json;
- fn main() {
- let mut map = std::collections::HashMap::new();
- map.insert("A".to_owned(), 1);
- map.insert("B".to_owned(), 2);
- println!("{}", serde_json::to_string(&map).unwrap());
- }
Add Comment
Please, Sign In to add comment