code: function jsonStringifyWithFunctions (value) {
    function replacer (key, value) {
      if (typeof value === 'function') {
        // Stringify this function, and slightly minify it.
        value = String(value).replace(/\s+/g, ' ');
      }
      return options.jsonStringifyReplacer(key, value);
    }
    return JSON.stringify(value, replacer, options.jsonStringifySpaces);
  }
docs: Stringify everything, including Function bodies.