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
Vampire
02/18/2023, 11:40 AM
SnakeYaml maybe?
➕ 1
e
Eugen Martynov
03/05/2023, 2:37 PM
Thank you!!!
k
kenkyee
03/05/2023, 2:40 PM
Jackson uses snakeyaml underneath but provides a standard class annotation layer over it so you can serialize to JSON with the same classes