who_cares_?,
 
	
	| Сообщение от who_cares_? | 
	| как перевести содержимое функции в текст? | 
	
Как вариант для JS-объекта... Правда, toJson  тоже туда лезет.
var room = {
  number: 23,
  occupy: function() { alert( this.number ); },
  free: function() { alert( this.number ); }
};
room.toJSON = function()
 { 
    var replacement = new Object();
    for (var val in this)
    {  if(this[val].name == '')  { replacement[val] = ""; }
        else {
           if (typeof (this[val]) === 'function')
               replacement[val] =  this[val].toString();
           else
               replacement[val] = this[val]
       }
    }
    return replacement;
};
alert(JSON.stringify(room));