home.social

#json5 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #json5, aggregated by home.social.

fetched live
  1. #PSA : using #json formatted config files in #python
    Just learned about #json5
    json data format is close to python dict;
    json5 is closer:-)

    it allows trailing commas but It doesn't have python comments so we still have to remember how to use /* comments*/.

    There are other niceties and full conversion back to json if needed.
    #floss #foss #software #openSource #democracy is more than how we vote

  2. #PSA : using #json formatted config files in #python
    Just learned about #json5
    json data format is close to python dict;
    json5 is closer:-)

    it allows trailing commas but It doesn't have python comments so we still have to remember how to use /* comments*/.

    There are other niceties and full conversion back to json if needed.
    #floss #foss #software #openSource #democracy is more than how we vote

  3. JSON-IO
    A #java library to convert between #JSON, #JSON5, #TOON and Java objects.
    github.com/jdereg/json-io
    Particularly interesting as it's lenient & tolerant, and would parse even badly formed JSON output from #LLMs structured output!

  4. JSON-IO
    A #java library to convert between #JSON, #JSON5, #TOON and Java objects.
    github.com/jdereg/json-io
    Particularly interesting as it's lenient & tolerant, and would parse even badly formed JSON output from #LLMs structured output!

  5. wait... wait! are you telling me that #pnpm supports `package.json5` instead of `package.json`??? and I learn about it years later?

    I've been praying for something like this for ages... and it turns out that we already had it.

    #json #json5 #javascript

  6. wait... wait! are you telling me that #pnpm supports `package.json5` instead of `package.json`??? and I learn about it years later?

    I've been praying for something like this for ages... and it turns out that we already had it.

    #json #json5 #javascript

  7. contemplating making a #JSON5 -> YAML transpiler just to never write any more YAML.

  8. contemplating making a #JSON5 -> YAML transpiler just to never write any more YAML.

  9. @srob True. And there is a Dart package for it so perhaps I could use it instead of the built-in parser library...hmm...

    #DartLang #json5

    pub.dev/packages/json5

  10. @srob True. And there is a Dart package for it so perhaps I could use it instead of the built-in parser library...hmm...

    #DartLang #json5

    pub.dev/packages/json5

  11. So I noticed the lack of prominent parsers for C++, and made one of my own: github.com/mortie/json5cpp

    The goal is to be simple, robust, and a very small dependency for projects which already use JsonCpp.

    Thoughts?

  12. @slightlyoff I use #JSON5 in a Chrome Extension I own solely to comment the manifest and it works great.

    I do think the bigger issue is that JSON is a terrible configuration language (but great wire format!). We should be using #TOML, #YAML, or something else more targeted for that use case.

  13. @slightlyoff I use in a Chrome Extension I own solely to comment the manifest and it works great.

    I do think the bigger issue is that JSON is a terrible configuration language (but great wire format!). We should be using , , or something else more targeted for that use case.

  14. @reiver RIGHT!?

    They keep coming out with new package managers and I'm *still* not writing #JSON5!?

  15. @reiver RIGHT!?

    They keep coming out with new package managers and I'm *still* not writing #JSON5!?