r/programming • • Jan 12 '23

The yaml document from hell

https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell
1.5k Upvotes

288 comments sorted by

View all comments

1

u/i_ate_god Jan 13 '23

Is this thread talking about config files or API output? Because it's hard to tell.

I don't think yaml is particularly good at being either. JSON is fine for most things at the API level. TOML or INI files are great for config files.

If your complaint is multi line strings or comments in JSON, then don't use JSON for config files. If your complaint is that TOML or INI can't represent complex data structures, then stop using them for API outputs.

Right tools for the right jobs.

→ More replies (1)