private JsonObject developResult(Object object) {
    if (endTimestamp == 0) {
      endTimestamp = System.currentTimeMillis();
    }
    return Json.createObjectBuilder()
        .add("resultId",
            tuple.getResultId() == null ? UUID.randomUUID().toString() : tuple.getResultId())
        .add("startTime", "" + startTime)
        .add("endTimestamp", "" + (endTimestamp == 0 ? System.currentTimeMillis() : endTimestamp))
        .add("result",
            object instanceof Exception ? ((Exception) object).getMessage() : object.toString())
        .build();
  }
Develop result.

@param object the object
@return the json object
KITE-Engine/src/main/java/org/webrtc/kite/TestManager.java