Example #1
0
 public static JsonResult returnData(Object data) {
   JsonResult r = new JsonResult(true);
   r.setData(data);
   return r;
 }
Example #2
0
 public static JsonResult returnData(String href, Object data) {
   JsonResult r = new JsonResult(true);
   r.setData(data);
   r.setNextHref(href);
   return r;
 }