y = {}; y.x = "xxxxxxxxxxx"; y.yy = function(){return this;} console.log(y.yy()); /*this is the y json itself*/