lib/object/index.js
function () {
    var obj = {}, value;

    var keys = Object.keys(this);

    for (var i = 0, n = keys.length; i < n; i++) {
      var key = keys[i];
      if (key.substr(0, 2) === "__") continue;
      value = this[key];

      if(value && value.__isBindable) {
        value = value.toJSON();
      }

      obj[key] = value;
    }

    return obj;
  }
function () {
    var obj = {}, value;

    var keys = Object.keys(this);

    for (var i = 0, n = keys.length; i < n; i++) {
      var key = keys[i];
      if (key.substr(0, 2) === "__") continue;
      value = this[key];

      if(value && value.__isBindable) {
        value = value.toJSON();
      }

      obj[key] = value;
    }

    return obj;
  }
function ( ) { var obj = { } , value ; var keys = Object . keys ( this ) ; for ( var i = 0 , n = keys . length ; i < n ; i ++ ) { var key = keys [ i ] ; if ( key . substr ( 0 , 2 ) === "__" ) continue ; value = this [ key ] ; if ( value && value . __isBindable ) { value = value . toJSON ( ) ; } obj [ key ] = value ; } return obj ; }
Converts the context to a JSON object
@method toJSON
Converts the context to a JSON object