summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authortal@whatexit.org <tal@whatexit.org>2015-04-03 13:53:51 +0000
committerNicolas Williams <nico@cryptonector.com>2015-04-16 11:09:49 -0500
commitb6cc00fa7199772dc88dfe086c9289e5524e1742 (patch)
tree6feaed2c5555eda590282c0bcc75b84efc8039c6 /docs
parent9e2d9b641925eab0dd7b9ff8770e51cefa1458da (diff)
manual.yml: Clarify how to specify keys with ":" and special chars.
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/content/3.manual/manual.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml
index f9fdc034..a19ca6ad 100644
--- a/docs/content/3.manual/manual.yml
+++ b/docs/content/3.manual/manual.yml
@@ -301,6 +301,12 @@ sections:
to the last element, -2 referring to the next to last element,
and so on.
+ The `.foo` syntax only works for simply keys i.e. keys that
+ are all alphanumeric characters. `.[<string>]` works with
+ keys that contain special charactors such as colons and dots.
+ For example `.["foo::bar"]` and `.["foo.bar"]` work while
+ `.foo::bar` and `.foo.bar` would not.
+
The `?` "operator" can also be used with the slice operator,
as in `.[10:15]?`, which outputs values where the inputs are
slice-able.