https://stedolan.github.io/jq/
jq is a lightweight and flexible command-line JSON processor.
JSON用加工・整形・集計ツール。
Homebrewでインストール。
以下コマンドを実行しインストール。
$ brew install jq
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.
==> Installing dependencies for jq: oniguruma
==> Installing jq dependency: oniguruma
==> Downloading https://homebrew.bintray.com/bottles/oniguruma-6.9.4.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/ab/ab2bb92e40e17569c54dda0ed3b3a0fc6f98be761107fba918754af75817de6f?__gda__=exp=1579842215~hmac=9f379b8ac9e66f87924913c3cbaaceab152c6f31953aca820b6f96b9728d8728&r
######################################################################## 100.0%
==> Pouring oniguruma-6.9.4.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/oniguruma/6.9.4: 17 files, 1.3MB
==> Installing jq
==> Downloading https://homebrew.bintray.com/bottles/jq-1.6.mojave.bottle.1.tar.gz
==> Downloading from https://akamai.bintray.com/71/71f0e76c5b22e5088426c971d5e795fe67abee7af6c2c4ae0cf4c0eb98ed21ff?__gda__=exp=1579842218~hmac=473572561c4733c2de469bda251f22a1443382fbda5c696b033370e25746552d&r
######################################################################## 100.0%
==> Pouring jq-1.6.mojave.bottle.1.tar.gz
🍺 /usr/local/Cellar/jq/1.6: 18 files, 1MB
$ curl 'http://domain.com/check.json' | jq