core/src/main/java/com/alibaba/fastjson2/JSONReaderUTF8.java [4520:4558]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static int skipArray(JSONReaderUTF8 jsonReader, byte[] bytes, int offset, int end) {
        offset = next(jsonReader, bytes, offset, end);
        for (int i = 0; ; ++i) {
            if (jsonReader.ch == ']') {
                break;
            }
            if (i != 0 && !jsonReader.comma) {
                throw jsonReader.valueError();
            }
            offset = skipValue(jsonReader, bytes, offset, end);
        }

        int ch = offset == end ? EOI : bytes[offset++];

        while (ch <= ' ' && ((1L << ch) & SPACE) != 0) {
            ch = offset == end ? EOI : bytes[offset++];
        }

        boolean comma = false;
        if (ch == ',') {
            comma = true;
            ch = offset == end ? EOI : bytes[offset++];
            while (ch <= ' ' && ((1L << ch) & SPACE) != 0) {
                ch = offset == end ? EOI : bytes[offset++];
            }
        }

        if (!comma && ch != '}' && ch != ']' && ch != EOI) {
            throw jsonReader.error(offset, ch);
        }

        if (comma && (ch == '}' || ch == ']' || ch == EOI)) {
            throw jsonReader.error(offset, ch);
        }

        jsonReader.comma = comma;
        jsonReader.ch = (char) ch;
        return offset;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



core/src/main/java/com/alibaba/fastjson2/JSONReaderUTF16.java [3382:3420]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static int skipArray(JSONReaderUTF16 jsonReader, char[] bytes, int offset, int end) {
        offset = next(jsonReader, bytes, offset, end);
        for (int i = 0; ; ++i) {
            if (jsonReader.ch == ']') {
                break;
            }
            if (i != 0 && !jsonReader.comma) {
                throw jsonReader.valueError();
            }
            offset = skipValue(jsonReader, bytes, offset, end);
        }

        int ch = offset == end ? EOI : bytes[offset++];

        while (ch <= ' ' && ((1L << ch) & SPACE) != 0) {
            ch = offset == end ? EOI : bytes[offset++];
        }

        boolean comma = false;
        if (ch == ',') {
            comma = true;
            ch = offset == end ? EOI : bytes[offset++];
            while (ch <= ' ' && ((1L << ch) & SPACE) != 0) {
                ch = offset == end ? EOI : bytes[offset++];
            }
        }

        if (!comma && ch != '}' && ch != ']' && ch != EOI) {
            throw jsonReader.error(offset, ch);
        }

        if (comma && (ch == '}' || ch == ']' || ch == EOI)) {
            throw jsonReader.error(offset, ch);
        }

        jsonReader.comma = comma;
        jsonReader.ch = (char) ch;
        return offset;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



