code: function _fRemoveCircularReferences(object, bStringify) {
    var simpleObject = {};
  
    for (var prop in object) {
      if (!object.hasOwnProperty(prop)) {
        continue;
      }
      if (typeof object[prop] == 'object') {
        continue;
      }
      if (typeof object[prop] == 'function') {
        continue;
      }
      simpleObject[prop] = object[prop];
    }
  
    return bStringify ? JSON.stringify(simpleObject) : simpleObject;
  }
docs: for external use, see fvRemoveCircularReferences ref: https://stackoverflow.com/a/31557814/3931488