omegaconf
omegaconf copied to clipboard
[Feature Request] Add .toJSON() method
It is often necessary to convert a config node to JSON for downstream libraries which support JSON or for something else. The current way to do this is to go via to_container
. It would be great to have .toJSON()
method on the config node itself.
thinking more, pretty can support a mode for json.