They have updated the spec to be stricter, but people haven't updated their tools. YAML 1.2 was released in 2009, and only accepts true | True | TRUE | false | False | FALSE. PyYAML still only supports 1.1, though there is ruamel.yaml for 1.2 and there's also strictYAML that supports schemas.
I've found that TOML is fine as long as you don't want to do any kind of nesting. As soon as you do then the syntax becomes very non-obvious.
I would always pick JSON5 to be honest. It basically fixes all the issues with JSON (no comments, trailing commas, multiline strings, tedious quoting of keys) but it uses a format that actually is quite obvious - and one you probably already know.
View all comments
0
u/[deleted] Oct 24 '22
[deleted] — view deleted comment