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

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