I love jq, I hate jq. Help a competent grepper get a grasp on the terse language!
An Introduction to JQ
Videos
You can install any application/packages with brew on mac. If you want to know the exact command just search your package on https://brewinstall.org and you will get the set of commands needed to install that package.
First open terminal and install brew
Copy/bin/bash -c "$(curl -fsSL raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Now Install jq
brew install jq
On a Mac, the "most efficient" way to install jq would probably be using homebrew, e.g.
brew install jq
If you want the development version, you could try:
Copybrew install --HEAD jq
but this has various pre-requisites.
Detailed instructions are on the "Installation" page of the jq wiki: https://github.com/jqlang/jq/wiki/Installation
The same page also includes details regarding installation from source, and has notes on installing with MacPorts ("ports"), asdf (asdf-vm), and 0install ("zero-install").
Footnote: one can also use brew to install the Go and Rust implementations of jq:
brew install gojq
brew install jaq