Assuming that the jwt is in the token.json file:
cat token.json | cut -d"." -f2 | base64 --decode -i | jq "."
Or create an alias:
alias jwt-decode='cut -d"." -f2 - | base64 --decode -i | jq "."' cat token.json | jwt-decode