1 2 3 4 5 6 7 8 9 10
#!/bin/bash URL=$1 if [[ -z "${URL}" ]]; then echo "usage: $0 <URL>" exit 1 fi curl -s "${1}" | python -m json.tool