2 ms·
> Whenever an input accepts YAML you can actually pass in JSON there and it’ll be valid Strictly speaking, this is only true of YAML 1.2, not YAML 1.0-1.1 (the
by dragonwriter 6y ago
> Whenever an input accepts YAML you can actually pass in JSON there and it’ll be valid
Strictly speaking, this is only true of YAML 1.2, not YAML 1.0-1.1 (the article here addresses YAML 1.1 behavior, the headline example od which was removed ib YAML 1.2 twelve years ago), though it calla YAML 1.1 “YAML 2.0”, which doesn’t actually exists.
Of course, there are lots of features, like custom types, that JSON doesn’t support, but you can still use YAML’s JSON-style syntax instead of actual JSON, for them.