Skip to main content


Repeat after me: JSON is not a valid choice for human-editable configuration files.

reshared this

in reply to zhenech

True. JSON files don't even support comments (!!)
Unknown parent

Quincy
@farseen for me it's the main sticking point. what about you, @zhenech ?
Unknown parent

silverwizard

The list syntax mandating ,s on all list items, except the last

That kind of violation of postel's law makes it a giant pain for humans

Unknown parent

Quincy
@farseen @silverwizard I've used it, but it's kind of hard to get the syntax right
Unknown parent

silverwizard
I am a TOML evangelist who thinks YAML is read-only, writing is beyond finicky ime
Unknown parent

in reply to zhenech

Exactly! I mean, who in their right mind would use anything else than deeply nested XML, with liberal use of attributes, namespaces, and unordered serialization when updating it after in-app changes are made?
in reply to zhenech

JSON is not a valid choice for human-editable configuration files.
in reply to zhenech

JSON is not a valid choice for human-editable configuration files.
Unknown parent

silverwizard

JSON is designed to not be readable at a glance and resist quick updates

XML is criticized for being too verbose

Unknown parent

silverwizard

Nah, when it is a {,[, or (, and how do you add a thing to a list? What if it's in the middle? What if at the end?

To be clear - if you run JS a lot, JSON makes a lot more sense, but that's an unrelated crime

in reply to silverwizard

@silverwizard @quincy @farseen wholesome agree with you, JSON is for machine write/read, yaml is somewhat human readable and TOML +- usable also for human writing
⇧