Skip to content

Instantly share code, notes, and snippets.

@Wapiti08
Created June 4, 2020 03:49
Show Gist options
  • Save Wapiti08/fb4ad5e8785ec1d43a74f85c7a982392 to your computer and use it in GitHub Desktop.
Save Wapiti08/fb4ad5e8785ec1d43a74f85c7a982392 to your computer and use it in GitHub Desktop.
the instruction for json query command in Ubuntu

download the JQ:

sudo apt-get install jq

two main methods to parse the json file:

  • cat xxx.json | jq '.' | less
  • jq '.' xxx.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment