code: function jsonStringifyIfObject (value) {
    if (!(value instanceof Object)) {
      return value;
    }
    return JSON.stringify(value, options.jsonStringifyReplacer,
      options.jsonStringifySpaces);
  }
docs: Stringify Objects, leave non-Objects untouched (e.g. Strings).