summary refs log tree commit diff
path: root/bin/json-pretty
blob: e536fd0b361b237bd44ce4ab4d2cf66410067e7a (plain) (blame)
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