jq is beautiful. TODO: use xpath (maybe)