[Typesafe Config] Save to Json?

354 views
Skip to first unread message

Chanan Braunstein

unread,
Jul 2, 2014, 10:47:54 AM7/2/14
to play-fr...@googlegroups.com
Howdy,

Not sure if the Play group is the best place to ask this, but I am unaware of a group just for the config object. We would like to use the Typesafe Config for our own configuration. We would need however to be able to retrieve the json/hocon file from the config object. I didn't see a method to do that (such as Save() ). We would need to get it from the Config object and not directly from whatever input it is coming from because we plan to merge more than one input which may have the same json property names. Is there some way to get at the final representation of the config library?

Thanks,
Chanan

alex s

unread,
Jul 2, 2014, 12:17:00 PM7/2/14
to play-fr...@googlegroups.com

Chanan Braunstein

unread,
Jul 2, 2014, 4:34:29 PM7/2/14
to play-fr...@googlegroups.com
That seems to be on the config value level only and not on the full config.

Havoc Pennington

unread,
Jul 2, 2014, 4:53:16 PM7/2/14
to play-framework
On Wed, Jul 2, 2014 at 4:34 PM, Chanan Braunstein
<chanan.b...@pearson.com> wrote:
> That seems to be on the config value level only and not on the full config.
>

Can you explain what you mean by "the full config" ?

The config used by most apps is made by loading Config instances from
individual files and then merging those into a single Config instance.
So the way you render() and individual file config vs. the merged
config is the same.

Havoc
Reply all
Reply to author
Forward
Message has been deleted
0 new messages