3 ms·
> Whenever an input accepts YAML you can actually pass in JSON there and it’ll be valid ...unless your parser strictly implements YAML 1.1, in which case you s
by norrius 6y ago
> Whenever an input accepts YAML you can actually pass in JSON there and it’ll be valid
...unless your parser strictly implements YAML 1.1, in which case you should be careful to add whitespace around commas (and a few other minor things). This is a valid JSON that some YAML parsers will have problems with:
{"foo":"bar","\/":10e1}
The very first result Google gives me for "yaml parser" is https://yaml-online-parser.appspot.com https://yaml-online-parser.appspot.com, which breaks on the backslash-forward slash sequence.