So you need to Invoke a HTTP API that returns JSON but you dont want to leave the comfort of your console. And you want the JSON response to be well formatted and color-highlighted.
You'll need:
- cURL
- json_pp
- pygmentize
You can just apt install all of them
Here's an example:
# curl -s -X GET http://127.0.0.1/api/people | json_pp | pygmentize -l json