CarmJos / EasyConfiguration

:memo: Easy (to make) Configurations! A simple, easy-to-use and universal solution for managing configuration files. Enjoy the ease of use with customizable formats for loading, reading, and updating your configuration files.
https://carmjos.github.io/EasyConfiguration/
GNU Lesser General Public License v3.0
30 stars 5 forks source link

HOCON的 object-in-object 问题 #37

Closed flowerinsnowdh closed 1 year ago

flowerinsnowdh commented 1 year ago

HOCON 无法拥有 object-in-object,最多只能拥有一层 object

例如我想要的效果如下:

.
├── field1
├── field2
├── object1
│      ├──  field3
│      └── object2
│              └── field4
│              └── field5
└── field6

可是目前的版本会达成这样的效果:

.
├── field1
├── field2
├── object1
│      ├──  field3
│      ├──  field4
│      └── field5
└── field6

即 object2 中的字段都写入到了 object1 中


https://github.com/CarmJos/EasyConfiguration/pull/38

CarmJos commented 1 year ago

感谢花花的贡献,最喜欢花花了,mua~