public JsonToken next() {
        advance();
        JsonToken token = current();
        updateNesting(token);
        return token;
    }
Returns the next token, or null, and updates the nesting count of this.
document/src/main/java/com/yahoo/document/json/TokenBuffer.java