Guest User

Untitled

a guest
Jun 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. extern crate serde_json;
  2.  
  3. fn main() {
  4. let mut map = std::collections::HashMap::new();
  5. map.insert("A".to_owned(), 1);
  6. map.insert("B".to_owned(), 2);
  7. println!("{}", serde_json::to_string(&map).unwrap());
  8. }
Add Comment
Please, Sign In to add comment