A simple way of serving up simple JSON. Converted to Python 3 from https://gist.github.com/nitaku/10d0662536f37a087e1b
Changes:
- converts BaseHTTPServer to http.server
- omits socketserver
- .encode() appended to json.dumps() calls
- self.headers.getheader() converted to self.headers.get()