3 ms·
JSON is valid YAML. YAML has comments. YAML is easily & trivially written by humans. JSON is easily & trivially written by code. My lesson learned here?
by fireflash38 2y ago
JSON is valid YAML.
YAML has comments.
YAML is easily & trivially written by humans.
JSON is easily & trivially written by code.
My lesson learned here? When generating YAML, instead generate JSON. If it's meant to be read and updated by humans, use something that can communicate to the humans (comments). And don't use YAML as a data interchange format.