3 ms·
First, JSON is not just used for config, and I've yet to find the an API to parse YAML in the browser natively. Secondly, JSON is here and you have to deal wit
by sametmax 9y ago
First, JSON is not just used for config, and I've yet to find the an API to parse YAML in the browser natively.
Secondly, JSON is here and you have to deal with it everyday, so smoothing the work wouldn't hurt.
Finally, if you have to pick a format, take TOML. Less error prone than YAML, faster, and injecting executable code and shooting your in the foot is not part of the standard. The fact that a lot of ini files are valid toml is a nice bonus.
- XorNot 9y agoI cannot follow TOML at all. YAML is nice and obvious in the limited basically json subset I use whereas nested maps in TOML are a nightmare.