我可以将 TOML 表放入 TOML 变量中,然后在另一个 TOML 表中使用该变量吗?我想像这样复制 JSON 输出:
group1 = {
"key1": "value1"
"key2": "value2"
"key3": {
"key1": "value4"
"key2": "value5"
"key3": "value6"
}
}
group2 = {
"key1": "value1"
"key2": "value2"
"key3": {
"key1": "value4"
"key2": "value5"
"key3": "value6"
}
}
mainGroup = {
"key1": "value1"
"key2": "value2"
"key3": group1
"key4": {
"key1": "value3"
"key2": "value3"
"key3": group2
}
"key5": {
"key1": group1
"key2": group2
}
}