Oh come on!!
echo '{"foo":1, "bar":[1,2,3]}' | python -m json.tool
But for my main account, I'm quite happy to pay Github their not very many £s per month.