Package com.cib.ajax.rpc.util

Examples of com.cib.ajax.rpc.util.JavaBean2JSON


    try {
      JSONObject jsonResponse = new JSONObject();
         
      // result = wire.invoke(jsonOperation, args);
      result = jsonOperation.invoke(this.serviceInstance, parameters);
      JavaBean2JSON transform = new JavaBean2JSON();

      try {
        // FIXME: this only checks for String and not primitive types
        if (!(result instanceof java.lang.String)) {
          jsonResponse.put("result", transform.toJSON(result));
        } else {
          jsonResponse.put("result", result);
        }
        jsonResponse.putOpt("id", id);
View Full Code Here

TOP

Related Classes of com.cib.ajax.rpc.util.JavaBean2JSON

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.