code: private void pop(char c) throws JSONException {
  
          if ((m_top <= 0) || (m_stack[m_top - 1] != c)) {
              throw new JSONException("Nesting error.");
          }
          m_top -= 1;
          m_mode = m_top == 0 ? 'd' : m_stack[m_top - 1];
      }
docs: Pop an array or object scope.<p>
  
  @param c the scope to close
  @throws JSONException zf nesting is wrong