Example #1
0
 public static String json(Object object) {
   if (JSONUtils.isArray(object)) return JSONArray.fromObject(object).toString();
   if (JSONUtils.isObject(object)) return JSONObject.fromObject(object).toString();
   return object.toString();
 }