private static void addBinaryStats(ColumnStatisticsData statistics, Map<String, Object> result) {
    if (statistics.getBinaryStats().isSetNumNulls()) {
      result.put(COLUMN_NUM_NULLS, statistics.getBinaryStats().getNumNulls());
    }
    if (statistics.getBinaryStats().isSetAvgColLen()) {
      result.put(COLUMN_AVG_LENGTH, statistics.getBinaryStats().getAvgColLen());
    }
    if (statistics.getBinaryStats().isSetMaxColLen()) {
      result.put(COLUMN_MAX_LENGTH, statistics.getBinaryStats().getMaxColLen());
    }
  }
Formats DESC TABLE results to json format.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/desc/formatter/JsonDescTableFormatter.java