omegaconf icon indicating copy to clipboard operation
omegaconf copied to clipboard

[Feature Request] Add .toJSON() method

Open apsdehal opened this issue 4 years ago • 1 comments

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.

apsdehal avatar Mar 25 '20 18:03 apsdehal

thinking more, pretty can support a mode for json.

apsdehal avatar Mar 25 '20 18:03 apsdehal