https://kotlinlang.org logo
Title
e

Eugen Martynov

02/18/2023, 9:54 AM
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?
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
v

Vampire

03/05/2023, 3:27 PM
Kaml also uses SnakeYaml underneath
e

Eugen Martynov

03/05/2023, 4:02 PM
Kaml is not great for the raw yaml manipulation