private static int detectEndJson(StringBuilder builder, int buffLength, int startPos) {
        while (startPos < buffLength && !isEndOfJson(builder, startPos)) {
            startPos++;
        }

        return startPos;
    }
detect end position of sensitive data in json

@param builder raw data
@param buffLength the length of raw data
@param startPos the start position of sensitive data
@return the end position of sensitive data
inlong-common/src/main/java/org/apache/inlong/common/util/MaskDataUtils.java