function nextState() {
    const state = stack.pop();
    if (state != null) {
      return state;
    } else {
      return State.VALUE;
    }
  }
@return {!goog.net.streams.JsonStreamParser.State_} the next state
   from the stack, or the general VALUE state.