If you have folks with non-ASCII names, here's a Python three-liner to convert the output of first_degree.php to a text file:
with open("first_degree.php.txt", "w") as f:
for e in json.loads(open("first_degree.php.json","rb").read().replace("for (;;);",""))["payload"]["entries"]:
f.write(("%s %r\n" % (e['text'],-e['index'])).encode('utf-8'))