The question is very old but here's an update for the current macOS version. macOS Sequoia (15) has jq commnand-line utility pre-installed with the operating system. Xcode command line developer tools package isn't needed.
$ which jq
/usr/bin/jq
$ jq --version
jq-1.6-159-apple-gcff5336-dirty