public static String packExtParams(ClusterTagRequest request) {
        InlongClusterTagExtParam extParam = CommonBeanUtils.copyProperties(request, InlongClusterTagExtParam::new,
                true);
        JsonObject obj = GSON.fromJson(JsonUtils.toJsonString(extParam), JsonObject.class);
        if (StringUtils.isBlank(request.getExtParams())) {
            return obj.toString();
        }
        JsonObject existObj = GSON.fromJson(request.getExtParams(), JsonObject.class);
        for (String key : obj.keySet()) {
            JsonElement child = obj.get(key);
            if (child.isJsonNull()) {
                continue;
            } else if (child.isJsonPrimitive()) {
                JsonPrimitive jsonPrimitive = child.getAsJsonPrimitive();
                if (jsonPrimitive.isBoolean()) {
                    existObj.addProperty(key, child.getAsBoolean());
                } else if (jsonPrimitive.isNumber()) {
                    existObj.addProperty(key, child.getAsInt());
                } else {
                    existObj.addProperty(key, child.getAsString());
                }
            } else {
                existObj.addProperty(key, child.toString());
            }
        }
        return existObj.toString();
    }
Pack extended attributes into ExtParams

@param request the request
@return the packed extParams
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/cluster/InlongClusterTagExtParam.java