term_to_json - Convert (m)any terms to JSON

Interesting, thanks for working on this. Actually, by coincidence, half an hour ago I asked this related question: