Minimized JSON.stringify() for SWI-Prolog?

If all you want is a proxy server, they already exist, e.g. https://ubuntu.com/server/docs/proxy-servers-squid

As to gopher, ftp, etc. - I was making a bad joke, but I suppose it wasn’t obvious. (Does anyone use Gopher or FTP these days? I suppose there are some ancient examples out there, just as there are probably some people still using IE6)