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

Popular posts from this blog

javascript - Complete OpenIDConnect auth when requesting via Ajax -

c# - Replace text in MailItem Body -

java - Get more than One value and display it -