format curl json

curl -X GET "http://api/path" -H "accept: application/json" | python -mjson.tool