_json(res, payload) {
    res.writeHead(200, { 'content-type': 'application/json' });
    res.end(JSON.stringify(payload));
  }
@private

Sends out a JSON response

@param {RequestResponse} res
@param {object} payload