src/multiplex.js
function getJson(path) {
      return httpGet({
        hostname: t.options.remoteClientHostname,
        port: t.options.remoteClientPort,
        path: path,
        method: 'GET'
      }).then((obj) => {
        var contentType = getContentType(obj.response);
        if (contentType !== "application/json")
          LOG.warn("Expecting JSON from " + path + " but found wrong content type: " + contentType);
        
        try {
          return JSON.parse(obj.data);
        } catch(ex) {
          LOG.warn("Cannot parse JSON returned from " + path);
          return null;
        }
      });
    }
function getJson(path) {
      return httpGet({
        hostname: t.options.remoteClientHostname,
        port: t.options.remoteClientPort,
        path: path,
        method: 'GET'
      }).then((obj) => {
        var contentType = getContentType(obj.response);
        if (contentType !== "application/json")
          LOG.warn("Expecting JSON from " + path + " but found wrong content type: " + contentType);
        
        try {
          return JSON.parse(obj.data);
        } catch(ex) {
          LOG.warn("Cannot parse JSON returned from " + path);
          return null;
        }
      });
    }
Gets JSON from the remote server