summaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-06 02:37:34 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-06 02:37:34 +0100
commitfee38afd8bb0b1d226241c52094f7f1d0f2f8339 (patch)
tree1e7da9a07e527975a9577c5671ba642959112b72 /docs/content
parentcacda19e75f878e4274574eed01829f92ede7b72 (diff)
Document behaviour of .[] on objects.
Closes #57.
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/3.manual/manual.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml
index 374d5046..eac28a3c 100644
--- a/docs/content/3.manual/manual.yml
+++ b/docs/content/3.manual/manual.yml
@@ -181,6 +181,9 @@ sections:
numbers as three separate results, rather than as a single
array.
+ You can also use this on an object, and it will return all
+ the values of the object.
+
examples:
- program: '.[]'
input: '[{"name":"JSON", "good":true}, {"name":"XML", "good":false}]'
@@ -192,6 +195,10 @@ sections:
input: '[]'
output: []
+ - program: '.[]'
+ input: '{"a": 1, "b": 2}'
+ output: ['[1, 2]']
+
- title: "`,`"
body: |