Remove part of a returned JSON object

Looking for a way to pull the "segment":"browserCode== from this JSON, more specifically just the associated browser code CH OP etc to be placed within the logo.src as shown in JS table.

{"2017-12-17":[],"2017-12-18":[{"label":"Chrome","nb_uniq_visitors":1,"nb_visits":1,"nb_actions":5,"nb_users":0,"max_actions":5,"sum_visit_length":184,"bounce_count":0,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/CH.png","segment":"browserCode==CH"}],"2017-12-19":[{"label":"Chrome","nb_uniq_visitors":1,"nb_visits":7,"nb_actions":29,"nb_users":0,"max_actions":15,"sum_visit_length":4195,"bounce_count":2,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/CH.png","segment":"browserCode==CH"},{"label":"Mobile Safari","nb_uniq_visitors":2,"nb_visits":2,"nb_actions":2,"nb_users":0,"max_actions":1,"sum_visit_length":0,"bounce_count":2,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/MF.png","segment":"browserCode==MF"}],"2017-12-20":[{"label":"Chrome","nb_uniq_visitors":1,"nb_visits":1,"nb_actions":4,"nb_users":0,"max_actions":4,"sum_visit_length":794,"bounce_count":0,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/CH.png","segment":"browserCode==CH"}],"2017-12-21":[{"label":"Chrome","nb_uniq_visitors":1,"nb_visits":1,"nb_actions":14,"nb_users":0,"max_actions":14,"sum_visit_length":287,"bounce_count":0,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/CH.png","segment":"browserCode==CH"}],"2017-12-22":[{"label":"Chrome","nb_uniq_visitors":1,"nb_visits":2,"nb_actions":9,"nb_users":0,"max_actions":7,"sum_visit_length":219,"bounce_count":0,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/CH.png","segment":"browserCode==CH"}],"2017-12-23":[],"2017-12-24":[{"label":"Chrome","nb_uniq_visitors":1,"nb_visits":1,"nb_actions":12,"nb_users":0,"max_actions":12,"sum_visit_length":480,"bounce_count":0,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/CH.png","segment":"browserCode==CH"}],"2017-12-25":[{"label":"Chrome","nb_uniq_visitors":1,"nb_visits":3,"nb_actions":4,"nb_users":0,"max_actions":2,"sum_visit_length":7,"bounce_count":2,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/CH.png","segment":"browserCode==CH"}],"2017-12-26":[],"2017-12-27":[{"label":"Mobile Safari","nb_uniq_visitors":9,"nb_visits":9,"nb_actions":9,"nb_users":0,"max_actions":1,"sum_visit_length":0,"bounce_count":9,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/MF.png","segment":"browserCode==MF"},{"label":"Android Browser","nb_uniq_visitors":4,"nb_visits":4,"nb_actions":4,"nb_users":0,"max_actions":1,"sum_visit_length":0,"bounce_count":4,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/AN.png","segment":"browserCode==AN"},{"label":"Internet Explorer","nb_uniq_visitors":4,"nb_visits":4,"nb_actions":4,"nb_users":0,"max_actions":1,"sum_visit_length":0,"bounce_count":4,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/IE.png","segment":"browserCode==IE"},{"label":"Chrome","nb_uniq_visitors":3,"nb_visits":3,"nb_actions":3,"nb_users":0,"max_actions":1,"sum_visit_length":0,"bounce_count":3,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/CH.png","segment":"browserCode==CH"},{"label":"Chrome Mobile","nb_uniq_visitors":2,"nb_visits":2,"nb_actions":2,"nb_users":0,"max_actions":1,"sum_visit_length":0,"bounce_count":2,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/CM.png","segment":"browserCode==CM"},{"label":"Firefox","nb_uniq_visitors":2,"nb_visits":2,"nb_actions":2,"nb_users":0,"max_actions":1,"sum_visit_length":0,"bounce_count":2,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/FF.png","segment":"browserCode==FF"},{"label":"Opera","nb_uniq_visitors":1,"nb_visits":1,"nb_actions":1,"nb_users":0,"max_actions":1,"sum_visit_length":0,"bounce_count":1,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/OP.png","segment":"browserCode==OP"},{"label":"Safari","nb_uniq_visitors":1,"nb_visits":1,"nb_actions":1,"nb_users":0,"max_actions":1,"sum_visit_length":0,"bounce_count":1,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/SF.png","segment":"browserCode==SF"}],"2017-12-28":[],"2017-12-29":[],"2017-12-30":[],"2017-12-31":[{"label":"Chrome","nb_uniq_visitors":1,"nb_visits":1,"nb_actions":6,"nb_users":0,"max_actions":6,"sum_visit_length":41,"bounce_count":0,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/CH.png","segment":"browserCode==CH"}],"2018-01-01":[{"label":"Chrome","nb_uniq_visitors":1,"nb_visits":2,"nb_actions":9,"nb_users":0,"max_actions":7,"sum_visit_length":103,"bounce_count":0,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/CH.png","segment":"browserCode==CH"}],"2018-01-02":[],"2018-01-03":[{"label":"Chrome","nb_uniq_visitors":1,"nb_visits":3,"nb_actions":6,"nb_users":0,"max_actions":3,"sum_visit_length":250,"bounce_count":1,"nb_visits_converted":0,"logo":"plugins\/Morpheus\/icons\/dist\/browsers\/CH.png","segment":"browserCode==CH"}],"2018-01-04":[],"2018-01-05":[]}

So for example, if the associated segment from JSON is browserCode==CH, how do I get just CH and add it to the logo.src as 'https://example.com/browser-icons/' + browserCode + '.png'; so the output is https://example.com/browser-icons/CH.png?

let flattenArr = [].concat.apply([], Object.values(browser_data));
let groups = flattenArr.groupBy('label');
let table = document.getElementById('browserTable');
table.innerHTML = '';
  Object.keys(groups).forEach(function(label) {
    let row = document.createElement('tr');
    let logw = document.createElement('td');
    let logo = document.createElement('img');
    let lab = document.createElement('td');
    let nbv = document.createElement('td');
    let nbu = document.createElement('td');
    row.appendChild(logw);
    row.appendChild(lab);
    row.appendChild(nbv);
    row.appendChild(nbu);
    logw.appendChild(logo);
    logo.src = 'https://example.com/browser-icons/' + browserCode + '.png';
    lab.innerHTML = label;
    nbv.innerHTML = getPropertySum('nb_visits', groups[label]);
    nbu.innerHTML = getPropertySum('nb_uniq_visitors', groups[label]);
    table.appendChild(row); 
  });
});

Full Snippet

$(function() {
  var start = moment().subtract(29, 'days');
  var end = moment();
  let dateDates = start.format('YYYY-MM-DD') + ',' + end.format('YYYY-MM-DD');
  let defaultBrowserUrl = `https://discovrbookings.innocraft.cloud/?module=API&method=DevicesDetection.getBrowsers&format=json&idSite=2&period=day&date=${dateDates}&token_auth=68aa5bd12137f13255dcb98794b65dff`;
  browserAnalytics(defaultBrowserUrl);
  $('#reportrange').daterangepicker({
    startDate: start,
    endDate: end,
    ranges: {
      'Last 7 Days': [moment().subtract(6, 'days'), moment()],
      'Last 30 Days': [moment().subtract(29, 'days'), moment()],
      'Last 90 Days': [moment().subtract(89, 'days'), moment()],
      'This Month': [moment().startOf('month'), moment().endOf('month')],
      'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
    }
  }, function(start, end) {

    let dates = start.format('YYYY-MM-DD') + ',' + end.format('YYYY-MM-DD');
    let browserUrl = `https://discovrbookings.innocraft.cloud/?module=API&method=DevicesDetection.getBrowsers&format=json&idSite=2&period=day&date=${dates}&token_auth=68aa5bd12137f13255dcb98794b65dff`;
    browserAnalytics(browserUrl);
  });

  function browserAnalytics(browsweUrl) {
    $.getJSON(browsweUrl, (browser_data) => {
      Array.prototype.groupBy = function(key) {
        var path = key.split('.');
        var result = {};
        try {
          this.forEach(function(item) {
            // es6: path.reduce((a, b) => a[b], item)
            type = path.reduce(function(a, b) {
              return a[b]
            }, item) || 'null';
            if (!result[type])
              result[type] = [];
            result[type].push(item);
          });
          return result;
        } catch (err) {
          console.log(err);
          return {};
        }
      };

      function getPropertySum(key, arr) {
        return arr.reduce((a, b) => (key in b ? a + b[key] : a), 0)
      }
      // one array of all dates
      let flattenArr = [].concat.apply([], Object.values(browser_data));
      // object of grouped dates by device
      let groups = flattenArr.groupBy('label');
      let table = document.getElementById('browserTable');
      table.innerHTML = '';
      Object.keys(groups).forEach(function(label) {
        let row = document.createElement('tr');
        let logw = document.createElement('td');
        let logo = document.createElement('img');
        let lab = document.createElement('td');
        let nbv = document.createElement('td');
        let nbu = document.createElement('td');
        row.appendChild(logw);
        row.appendChild(lab);
        row.appendChild(nbv);
        row.appendChild(nbu);
        logw.appendChild(logo);
        logo.src = 'https://discovrbookings.com/wp-content/themes/discovr-application/assets/img/browser-icons/' + +'.png';
        lab.innerHTML = label;
        nbv.innerHTML = getPropertySum('nb_visits', groups[label]);
        nbu.innerHTML = getPropertySum('nb_uniq_visitors', groups[label]);
        table.appendChild(row);
      });
    });
  };
});
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-daterangepicker/2.1.27/daterangepicker.css" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-daterangepicker/2.1.27/daterangepicker.js"></script>

<div id="reportrange">
  <span>Choose Dates</span>
</div>
<table border="1" id="browserTable"></table>