private static Map<String, Object> createColumnInfo(FieldSchema column, ColumnStatisticsData statistics) {
    Map<String, Object> result = MapBuilder.create()
        .put(COLUMN_NAME, column.getName())
        .put(COLUMN_TYPE, column.getType())
        .put(COLUMN_COMMENT, column.getComment())
        .build();

    if (statistics != null) {
      if (statistics.isSetBinaryStats()) {
        addBinaryStats(statistics, result);
      } else if (statistics.isSetStringStats()) {
        addStringStats(statistics, result);
      } else if (statistics.isSetBooleanStats()) {
        addBooleansStats(statistics, result);
      } else if (statistics.isSetDecimalStats()) {
        addDecimalStats(statistics, result);
      } else if (statistics.isSetDoubleStats()) {
        addDoubleStats(statistics, result);
      } else if (statistics.isSetLongStats()) {
        addLongStats(statistics, result);
      } else if (statistics.isSetDateStats()) {
        addDateStats(statistics, result);
      } else if (statistics.isSetTimestampStats()) {
        addTimeStampStats(statistics, result);
      }
    }

    return result;
  }
Formats DESC TABLE results to json format.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/desc/formatter/JsonDescTableFormatter.java