Here you can find the source of toJson()
Object.defineProperty(Object.prototype, 'toJson', { value: function toJson() { return JSON.stringify(this); },//from w w w.j a v a2s. c om enumerable: false });
Object.prototype.toJava = function() { var m = JSON.json(); for (var k in this) if (this.hasOwnProperty(k)) m.set(k, this[k] == null ? null : this[k].toJava()); return m; }; Array.prototype.toJava = function() { var l = this.length; ...
Object.prototype.toJava = function() { var m = new org.juzu.impl.utils.JSON(); for (var k in this) if (this.hasOwnProperty(k)) m.set(k, this[k] == null ? null : this[k].toJava()); return m; }; Array.prototype.toJava = function() { var l = this.length; ...