code: function fastAndSafeJsonStringify(object) {
    try {
      return JSON.stringify(object);
    } catch (err) {
      try {
        return JSON.stringify(object, safeCycles());
      } catch (err2) {
        console.log('err', err);
        console.log('err2', err2);
        console.log('object', object);
        return 'modules/scripts/log: something is wrong';
      }
    }
  }
docs: A fast JSON.stringify that handles cycles and getter exceptions (when
  safeJsonStringify is installed).
  
  This function attempts to use the regular JSON.stringify for speed, but on
  error (e.g. JSON cycle detection exception) it falls back to safe stringify
  handlers that can deal with cycles and/or getter exceptions.
  
  From: https://github.com/trentm/node-bunyan/blob/c0932196dd6846189ec82623c12d051eee799d4f/lib/bunyan.js#L1208