Javascript Object toJava()

Description

Javascript Object toJava()


Object.prototype.toJava = function() {
  var m = new org.juzu.impl.utils.JSON();
  for (var key in this)
    if (this.hasOwnProperty(key))
      m.add(key, this[key].toJava());//from   ww  w. j  a v a 2s. c om
  return m;
};



PreviousNext

Related