From 1fd030ef01a357789fe233e7b4195a537dc464a1 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Tue, 17 Apr 2018 09:11:11 +0530 Subject: [PATCH] jq: clarify json text input from stdin --- pages/common/jq.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/jq.md b/pages/common/jq.md index a480ea9114..5b8116140f 100644 --- a/pages/common/jq.md +++ b/pages/common/jq.md @@ -18,10 +18,10 @@ `jq .[0] {{file.json}}` -- Output the value of a given key of the first element in a JSON from stdin: +- Output the value of a given key of the first element in a JSON text from stdin: `cat {{file.json}} | jq .[0].{{key_name}}` -- Output the value of a given key of each element in a JSON from stdin: +- Output the value of a given key of each element in a JSON text from stdin: `cat {{file.json}} | jq 'map(.{{key_name}})'`