public static String getStatsSetupAsString(boolean enabled,
        boolean isIcebergTable,
        List<String> columns) {
      try {
        ColumnStatsSetup statsSetup = new ColumnStatsSetup();
        statsSetup.enabled = enabled;
        statsSetup.isIcebergTable = isIcebergTable;
        statsSetup.columnNames = new ArrayList<>(columns);
        return objectWriter.writeValueAsString(statsSetup);
      } catch (Exception e) {
        // this should not happen
        throw new RuntimeException(e);
      }
    }
Get json representation of the ColumnStatsSetup
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/common/StatsSetupConst.java