diff options
author | William Langford <wlangfor@gmail.com> | 2014-08-05 00:50:21 -0400 |
---|---|---|
committer | William Langford <wlangfor@gmail.com> | 2014-08-05 00:50:21 -0400 |
commit | c3d6d5fd37d26593d8b50c93d77d741cec2fda0c (patch) | |
tree | 9630b6334f666216214477fc20b0fc271e0c90d5 | |
parent | f8fed0f0bc020d09fdbfed7cbd672ff1cfd5dfef (diff) | |
parent | 89545ea9d0c2cf5c7a7e9dba1ace98b0f7a3dfa5 (diff) |
Merge pull request #523 from eproxus/patch-1
Add example of selecting object with keys
-rw-r--r-- | docs/content/3.manual/manual.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml index 8fa7ec0c..4dffd434 100644 --- a/docs/content/3.manual/manual.yml +++ b/docs/content/3.manual/manual.yml @@ -710,6 +710,9 @@ sections: - program: 'map(select(. >= 2))' input: '[1,5,3,0,7]' output: ['[5,3,7]'] + - program: '.[] | select(.id == "second")' + input: '[{"id": "first", "val": 1}, {"id": "second", "val": 2}]' + output: '{"id": "second", "val": 2}' - title: "`arrays`, `objects`, `iterables`, `booleans`, `numbers`, `strings`, `nulls`, `values`, `scalars`" |