Example #1
0
 @Override
 public String toString() {
   try {
     return CodecJSON.encodeString(this);
   } catch (Exception e) {
     return super.toString();
   }
 }
Example #2
0
 @Override
 public JSONObject toJSON() throws Exception {
   recountActiveTasks();
   return CodecJSON.encodeJSON(this);
 }