public String toJson() {
    return GSON.toJson(this);
  }
Return this result as a JSON string.

@return this result in JSON format
ambari-server/src/main/java/org/apache/ambari/server/view/validation/InstanceValidationResultImpl.java