News for hackers. Stuff that matters.
Re:No YAML by johnsolo1701 on Wednesday October 27, 2021 @08:21PM (#29020821)
I just use JSON and related tooling instead. Because YAML is a superset of JSON, all yaml parsers also parse JSON.
Re:No YAML by rp1 on Wednesday October 27, 2021 @08:24PM (#29020837)
If JSON supported comments it would be perfect.
Re:No YAML by justahuman1 on Wednesday October 27, 2021 @08:38PM (#29020928)
Not exactly plain json, but close: https://json5.org/
Re:No YAML by cryptica on Wednesday October 27, 2021 @09:52PM (#29021413)
It's so strange that they did this because YAML looks nothing like JSON. The entire point of a standard is to impose constraints to ensure that different people will do things in the same way... That's how you achieve compatibility between different systems.

When you have a flexible standard which allows people to do something in many different ways, it defeats the entire point of there being a standard...

Re:No YAML by zeroimpl on Wednesday October 27, 2021 @09:09PM (#29021131)
From my experience, if you give pretty-printed JSON to a YAML parser, it will explode.