public String toJsonStr(Object obj) {
        return gson.toJson(obj);
    }
doPost

@param dto content body needed to post
@return response
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/HttpManager.java