code: function(obj) {
          var objStr = JSON.stringify(obj);
          this.setHeader("Content-Length", unescape(encodeURIComponent(objStr)).length);
          this.write(objStr);
          this.close();
      }
docs: private: