core/src/main/java/com/alibaba/fastjson2/JSONReaderUTF8.java [4460:4497]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static int skipObject(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 = skipName(jsonReader, bytes, offset, end);
            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 ((ch == '}' || ch == ']' || ch == EOI)) {
                throw jsonReader.error(offset, ch);
            }
        } else if (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 [3327:3364]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static int skipObject(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 = skipName(jsonReader, bytes, offset, end);
            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 ((ch == '}' || ch == ']' || ch == EOI)) {
                throw jsonReader.error(offset, ch);
            }
        } else if (ch != '}' && ch != ']' && ch != EOI) {
            throw jsonReader.error(offset, ch);
        }

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



