JQ is a json processor. It’s for slicing and dicing data.

Download

To install on GitBash, unzip the file and copy the executable to /usr/bin.

<pre lang="bash">
mv jq-win64.exe to /usr/bin/jq.exe

Create an alias. Edit ~/.bashrc.

<pre lang="bash">
alias jq='/usr/bin/jq.exe'

Using JQ.

<pre lang="bash">
jq --version
jq '.selfLink' vm.json