yq/mkdocs/snippets/keys_with_dots.md
kenjones cc7eb84388 Task: Add docs on keys with dots
Adds documentation on how to use a key lookup indicator for dealing
with keys that have dots when specifying a path as part of create,
read, and write commands.

Resolves: #22
2017-09-25 22:36:49 -04:00

261 B

Keys with dots

When specifying a key that has a dot use key lookup indicator.

b:
  foo.bar: 7
yaml r sample.yaml b[foo.bar]
yaml w sample.yaml b[foo.bar] 9

Any valid yaml key can be specified as part of a key lookup.