docs: public JSONWriter array() throws JSONException {
          if (m_mode == 'k' || m_mode == 'd') {
              throw new JSONException("Misplaced array.");
          }
          push(m_expectingComma ?
                  ScopeOptions.ArrayWithComma :
                  ScopeOptions.ArrayWithoutComma);
          return this;
      }