3 ms·
JSON as config is the same reason XML as Config files were a bad idea. Configuration files will often be read and changed by humans and thus should be easily hu
by acd 8y ago
JSON as config is the same reason XML as Config files were a bad idea. Configuration files will often be read and changed by humans and thus should be easily human readable.
Plain text equals configuration setting is still a good idea.
- xrisk 8y agoI would argue that JSON is pretty human readable, and easy to write by hand too.
- enriquto 8y agoThis is not true, except for irrelevant trivial cases where the format does not really matter. Try to open a jupyter notebook with a text editor. What you expected to be a cleanly laid out python program with a few nicely formatted comments is in fact a nightmarish JSON "text" file, that looks like an obfuscated perl program.