static public String listToJSONString ( List < ? > list ) { if ( list == null || list . size ( ) == 0 ) { return "[]" ; } StringBuilder sb = new StringBuilder ( "[" ) ; for ( Object o : list ) { buildAppendString ( sb , o ) . append ( ' ' ) . append ( ' ' ) ; } return sb . delete ( sb . length ( ) - 2 , sb . length ( ) ) . append ( ' ' ) . toString ( ) ; }
List to json string string .