code: protected void pop(Mode c) {
          if (this.stack.size() == 0 || this.stack.pop() != c) {
              throw new JSONException("Nesting error.");
          }
          if (this.stack.size() > 0)
              this.mode = this.stack.peek();
          else
              this.mode = DONE;
  
      }
docs: Pop an array or object scope.
  
  @param c The scope to close.