private void _serializeList(String name,List list,StringBuilder sb,Set<Object> done) throws ConverterException {
  if (useShortcuts)   sb.append("[];");
 else   sb.append("new Array();");
  ListIterator it=list.listIterator();
  int index=-1;
  while (it.hasNext()) {
    index=it.nextIndex();
    sb.append(name + "[" + index+ "]=");
    _serialize(name + "[" + index+ "]",it.next(),sb,done);
  }
}

private void _serializeList ( String name , List list , StringBuilder sb , Set < Object > done ) throws ConverterException { if ( useShortcuts ) sb . append ( "[];" ) ; else sb . append ( "new Array();" ) ; ListIterator it = list . listIterator ( ) ; int index = - 1 ; while ( it . hasNext ( ) ) { index = it . nextIndex ( ) ; sb . append ( name + "[" + index + "]=" ) ; _serialize ( name + "[" + index + "]" , it . next ( ) , sb , done ) ; } }
serialize a list ( as array )
