How can I use the Hocon parser(`kotlinx-serializat...
# serialization
j
How can I use the Hocon parser(
kotlinx-serialization-hocon
)? I'm having trouble figuring out how to parse anything from a file/string to a kotlin Serializable data class objects?
Hocon {}
only has access to
decodeFromConfig
and there's no
decodeFromString
or something the like?
s
You can use a
com.typesafe.config.ConfigFactory#parseString
method to get a Config object from String
👍 1
d
In a previous version of a project, I use it. This is my Hocon reader, I hope that will help you
j
Thanks @Sergey Morgunov. Exactly what I was looking for