…and for Mac users, you only need to install the JSON.pm module for Perl (Perl is already installed)…
Open terminal and install Brew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
In Terminal, use Brew to install cpanm:
brew install cpanm
In terminal, use cpanm to install JSON.pm module for Perl:
sudo cpanm install JSON
The sudo
command raises the level to admin, so it will ask for your password.
Running it is the same as per @BigAlzy