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