JsonEvent acceptArraySeparator() throws IOException {
        JsonEvent event = readEvent();
        if (event == JsonEvent.COMMA) {
            return readEvent();  // leniently allow comma before arrayEnd
        } else {
            return ensureEvent(event, JsonEvent.ARRAY_END);
        }
    }
JsonEvent acceptArraySeparator ( ) throws IOException { JsonEvent event = readEvent ( ) ; if ( event == JsonEvent . COMMA ) { return readEvent ( ) ; } else { return ensureEvent ( event , JsonEvent . ARRAY_END ) ; } }
accepts a comma or array end