private void parseItems(JSON map) {
    boolean first = true;
    while ( hasNext() ) {
      if ( first ) {
	first = false;
	if ( scanFor('}') ) {
	  break;
	}
      }
      parseItem(map);
      char c = next(true);
      if ( c == '}' ) {
	break;
      }
      else if ( c != ',' ) {
	expected(',', c);
	break;
      }
    }
  }