From fee38afd8bb0b1d226241c52094f7f1d0f2f8339 Mon Sep 17 00:00:00 2001 From: Stephen Dolan Date: Mon, 6 May 2013 02:37:34 +0100 Subject: [PATCH] Document behaviour of .[] on objects. Closes #57. --- docs/content/3.manual/manual.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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: |