Java 如何使用SnakeYAML将值获取到数组中
假设我有:Java 如何使用SnakeYAML将值获取到数组中,java,yaml,snakeyaml,Java,Yaml,Snakeyaml,假设我有: item: field: value another: another 我是否有办法将其以如下形式放入数组中: [value, another] 在java中使用SnakeYAML是否可以省去很多麻烦 item: [value, another] 或 item: - value - another
item:
field: value
another: another
我是否有办法将其以如下形式放入数组中:
[value, another]
在java中使用SnakeYAML是否可以省去很多麻烦
item: [value, another]
或
item:
- value
- another