4 ms·
> [1] The specific task of serialization over a network; for configuration files JSON or YAML (or XML) can be reasonable. I would argue that JSON is not reason
by wtetzner 10y ago
> [1] The specific task of serialization over a network; for configuration files JSON or YAML (or XML) can be reasonable.
I would argue that JSON is not reasonable for configuration files that are meant to be edited by humans, because they don't support comments. It's also annoying to write JSON by hand because all keys have to be quoted.
YAML on the other hand, is a very nice configuration format.
- gmjosack 10y agoAlso the lack of trailing comma means often editing two lines to add new elements to lists or objects. I've actually experienced multiple outages at different companies where someone helpfully added a trailing comma to a JSON config.