2 ms·
This spec repeats one of the problems with using YAML as a configuration spec. To quote: "if your key includes a JSON control character like {}[],: or space,
by bryanlarsen 11y ago
This spec repeats one of the problems with using YAML as a configuration spec. To quote: "if your key includes a JSON control character like {}[],: or space, use quotes
if your string starts with { or [, use quotes"
JSON and YAML are interchange formats, not configuration formats. Rather than than hacking up an interchange format, it's probably better to use something designed for configuration formats, like TOML.
- Sir_Cmpwn 11y agoI think it's reasonable to call YAML a configuration format.
- stormbeta 11y agoJSON is an interchange format, but YAML is pretty obviously meant for configuration, given the huge emphasis on human readability and editing. As for TOML, it's a good replacement for mostly-flat INI-style files but the syntax is really awkward for the kinds of places you'd normally use YAML, especially nesting lists/maps.
- bryanlarsen 11y agoTop line on yaml.org: What It Is: YAML is a human friendly data serialization standard for all programming languages.
- Zardoz84 11y agoor SDLang