Maybe I'm blind or confused but is there a way to ...
# ktor
c
Maybe I'm blind or confused but is there a way to retrieve maps from the Ktor
ApplicationConfig
? I'd like to use an application config like this:
Copy code
myconfig {
  mymap = { "key1" : "value1", "key2" : "value2" }
}
However, I don't get how to access this, Using the debugger I can see that the map is nested in the
HoconApplicationConfig -> SimpleConfigObject -> Map
Accessing the config:
Copy code
val myConfigMap = environment.config.config("myconfig.mymap")
All further calls to
config(String)
or
property(String)
lead to exceptions and there are no other methods(?) Any advice would be greatly appreciated.