@Override
    public JsonElement serialize(RegionDetails src, Type typeOfSrc,
      JsonSerializationContext context) {
      final JsonObject jobj = (JsonObject) context.serialize(src.getRegionMetrics());
      jobj.addProperty("server_name", src.getServerName().toShortString());
      jobj.addProperty("table_name", src.getTableName().getNameAsString());
      return jobj;
    }
"Flatten" the serialized representation of a {@link RegionDetails}.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/http/RegionVisualizer.java