@Override
  public void showTableStatus(DataOutputStream out, Hive db, HiveConf conf, List<Table> tables, Partition partition)
      throws HiveException {
    List<Map<String, Object>> tableData = new ArrayList<>();
    try {
      for (Table table : tables) {
        tableData.add(makeOneTableStatus(table, db, conf, partition));
      }
    } catch (IOException e) {
      throw new HiveException(e);
    }
    ShowUtils.asJson(out, MapBuilder.create().put("tables", tableData).build());
  }
Formats SHOW TABLE STATUS commands to json format.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/show/status/formatter/JsonShowTableStatusFormatter.java