public String serialize ( Object object , String clientVariableName ) throws ConverterException { StringBuilder sb = new StringBuilder ( ) ; _serialize ( clientVariableName , object , sb , new HashSet < Object > ( ) ) ; String str = sb . toString ( ) . trim ( ) ; return clientVariableName + "=" + str + ( StringUtil . endsWith ( str , ' ' ) ? "" : ";" ) ; // return sb.toString(); }
serialize a CFML object to a JavaScript Object