public JSONBuffer closeHash(){
  if (stack.empty() || stack.peek() != Operand.HASH) {
    throw new JSONException("Not in array context when closing.");
  }
  removeSeparator();
  buffer.append("}");
  stack.pop();
  addSeparator();
  return this;
}

public JSONBuffer closeHash ( ) { if ( stack . empty ( ) || stack . peek ( ) != Operand . HASH ) { throw new JSONException ( "Not in array context when closing." ) ; } removeSeparator ( ) ; buffer . append ( "}" ) ; stack . pop ( ) ; addSeparator ( ) ; return this ; }
close an hash context .
