private StringBuilder addTopicInfo(Boolean withTopic, StringBuilder sBuffer,
            Map<String, TopicDeployEntity> topicConfEntityMap) {
        if (withTopic) {
            sBuffer.append(",\"topicSet\":[");
            int topicCount = 0;
            if (topicConfEntityMap != null) {
                for (TopicDeployEntity topicEntity : topicConfEntityMap.values()) {
                    if (topicCount++ > 0) {
                        sBuffer.append(",");
                    }
                    topicEntity.toWebJsonStr(sBuffer, true, true);
                }
            }
            sBuffer.append("]");
        }
        return sBuffer;
    }
Private method to add topic info

@param withTopic
@param sBuffer
@param topicConfEntityMap
@return
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/handler/WebBrokerConfHandler.java