Re: A grammar challange regarding that pesky YAML format

> - a:
> (with no space after the colon).


In YAML this means that we are creating a key->object pair in object in the
array.
If the next line is more indented than the character a and you can add
properties to this new object.
- a:
    b: 1

will become [ { "a": { "b":1}} ]

Just
- a:
becomes [ { "a": null } ]

I did not include this in the first example, intentionally to ease in the
YAML weirdness over time... :-)

//Fredrik

Received on Monday, 2 February 2026 13:24:00 UTC