playframework - Typesafe ConfigFactory Load -
i have json in conf directory of play application , want load using configfactory:
val cfg = configfactory.load("myjson.json") val jsvalue = json.parse(cfg.root().render(configrenderoptions.concise()))
what notice there tons of other stuff akka... , loads more. how should rid of it?
i'm using play's json api!
the standard behaviour described here:
https://github.com/typesafehub/config#standard-behavior
since there more configuration values think, can selective in picking required configuration values.
or maybe, check against reference.conf , discard values in output.
Comments
Post a Comment