Install python 2.7, pip, and pygments.
sudo apt install python python-pip
sudo pip install pygments
Open file ~/.bashrc into your favorite text editor
vim ~/.bashrc
Go to the end of document and write:
alias json='python -m json.tool | pygmentize -l json'
Save and close document. Then type into your terminal:
source ~/.bashrc
curl request_data | json