Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 241 Bytes

filter_json_output_of_command.md

File metadata and controls

8 lines (6 loc) · 241 Bytes

Filter property in some command's json output

somecommand | jq '.foo'
  • somecommand - any command that has to output json, echo '{ "foo": 123, "bar": 456 }' for example
  • '.foo' - json property name in output of a command