1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// let ctx = map!(
// "id", 123,
// "name", "Alice",
// "active", true,
// "info", map!(
// "email", "alice@example.com",
// "age", 28,
// "address", map!(
// "city", "Shanghai",
// "zip", "200000"
// )
// ),
// "tags", vec!["vip", "beta_user"]
// );
// println!("{}", serde_json::to_string_pretty(&ctx).unwrap());
/// 支持嵌套 map! 的宏