4 ms·
I post this pretty much every time this topic comes up: JSON5 exists, and is quite nice. I've picked it up for configs on a work project and haven't once had a
by bschwindHN 5y ago
I post this pretty much every time this topic comes up:
JSON5 exists, and is quite nice. I've picked it up for configs on a work project and haven't once had an issue due to misconfiguration, unexpected parsing, or friction with leaving a trailing comma or a comment.
The nesting in JSON5 is simple and familiar to pretty much all programmers, unlike deep nesting in TOML which is a huge pain.
- zkldi 5y agoJSON5 keeps coming up in these discussions, and I've personally had a great time with it. Hopefully some larger projects pick it up and it eventually becomes a common occurance, or something.
- bschwindHN 5y agoI like it so much I got motivated enough to start making a sublime text highlighter for it. I got a bit lost though, having never made one before. And then I tried to use a tool called SBNF to write the grammar for the language at a high level and have it spit out Sublime Text syntax highlighting code. Didn't quite work yet unfortunately. https://github.com/bschwind/sublime-json5 https://github.com/bschwind/sublime-json5 https://github.com/BenjaminSchaaf/sbnf https://github.com/BenjaminSchaaf/sbnf