public String toJson() {
    ObjectMapper mapper = new ObjectMapper();
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    try {
      mapper.writeValue(baos, this);
    } catch (IOException e) {
      return e.getMessage();
    }
    return baos.toString();
  }
Overloaded method to create an {@code InfoResultModel} section called "info".
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/result/model/ResultModel.java