3 ms·
As much as I dislike systemd, to use a standard format like JSON for config files looks like a really good idea. I would however prefer if it used a lenient su
by captainmuon 12y ago
As much as I dislike systemd, to use a standard format like JSON for config files looks like a really good idea.
I would however prefer if it used a lenient superset (allowing comments and trailing commas in lists, maybe also unquoted keys). Something like JSON5 ( http://json5.org/ http://json5.org/ ). The requirements for config files and for a wire-format are different (easily human-writable vs. strict standard).
Also, this is really, really something that would be better placed in a library. (If you don't want to avoid dynamic dependencies, then make it a source library or link staticly.)