json_map_serializer 0.1.3

Crate for easy serializing json maps from sequense of pairs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
```rust
use json_map_serializer::to_map;
use serde_json::Value;

fn main() {
    let query = (("foo", "bar"), ("baz", "qux"));
 
    let map = to_map(query).unwrap();

    let mut result = serde_json::Map::new();
    result.insert(String::from("foo"), Value::String(String::from("bar")));
    result.insert(String::from("baz"), Value::String(String::from("qux")));
 
    assert_eq!(result, map);
}
```