Initial implementation of JSON logging.