Coder Social home page Coder Social logo

toStringJSON about config HOT 2 CLOSED

lightbend avatar lightbend commented on July 4, 2024
toStringJSON

from config.

Comments (2)

havocp avatar havocp commented on July 4, 2024

My question would be, why have a convenience thingy like this only for one set of render options?

If config.root().render(ConfigRenderOptions.concise().setFormatted(true)) is too verbose then I'd rather have a solution that also makes config.root().render( /* any options here */) less verbose, ideally. The ideas to improve this in Java are pretty limited though perhaps.

Adding a shortcut for just one set of render options doesn't seem to address the full issue.

from config.

 avatar commented on July 4, 2024

ok.

I guess the real feature I am missing is a "standard", "canonical" way to represent config
in most popular formats: json and xml as a minimum;

in the spirit of HOCON, it better be "formatted" or as human-readlbe as possible;

for example, "verbose" compromise threshold for json would be to drop non-json
things like comments, but still make it formatted;

current default config.toString is pretty much unusable for me;

from config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.