Any good library for dirty yaml manipulation? I fo...
# scripting
e
Any good library for dirty yaml manipulation? I found kaml and Jackson. kaml is fine parsing and iterating. However, it builds a read-only tree (so I have to copy it to modify values), and it doesn’t have serialisation of a tree (since it doesn’t Kotlin serialiser for node). The Jackson has some editing possibilities. However, serialisation transforms int to strings and some other formatting changes.
v
SnakeYaml maybe?
1
e
Thank you!!!
k
Jackson uses snakeyaml underneath but provides a standard class annotation layer over it so you can serialize to JSON with the same classes
v
Kaml also uses SnakeYaml underneath
👍 1
e
Kaml is not great for the raw yaml manipulation