public JSONBuffer startArray(){
  if (!stack.empty() && stack.peek() != Operand.ARRAY) {
    throw new JSONException("startArray() is only allowed in an empty context.");
  }
  buffer.append("[");
  stack.push(Operand.ARRAY);
  return this;
}

public JSONBuffer startArray ( ) { if ( ! stack . empty ( ) && stack . peek ( ) != Operand . ARRAY ) { throw new JSONException ( "startArray() is only allowed in an empty context." ) ; } buffer . append ( "[" ) ; stack . push ( Operand . ARRAY ) ; return this ; }
start an array context . must only be called on an empty or array context .
